Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binocarlos/idiogit
Useful git snippets
https://github.com/binocarlos/idiogit
Last synced: 11 days ago
JSON representation
Useful git snippets
- Host: GitHub
- URL: https://github.com/binocarlos/idiogit
- Owner: binocarlos
- Created: 2013-11-19T18:08:03.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-19T19:30:48.000Z (about 11 years ago)
- Last Synced: 2024-04-14T14:36:41.662Z (7 months ago)
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```