Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/binocarlos/idiogit

Useful git snippets
https://github.com/binocarlos/idiogit

Last synced: 11 days ago
JSON representation

Useful git snippets

Awesome Lists containing this project

README

        

idiogit
=======

Useful git snippets

## Makefile
These snippets are make file steps

### upgrade

update to the latest git:

```
sudo make upgrade
```

### user details

get git to remember who you are

```
GIT_NAME='Rodney Trotter' GIT_EMAIL='[email protected]' make user
```

### aliases

```
make alises
```

#### ac
does add all and commit in one

## Tricks
These snippets are ad-hoc

### Delete branch
Remove a branch remotely

```
git push origin --delete gh-pages
```

### Sync gh-pages
Sync the master branch to the gh-pages branch

```
git push origin master:gh-pages
```

### Clone specific branch
Clone a specific branch to a folder

```
git clone user@git-server:project_name.git -b branch_name /some/folder
```