https://github.com/binocarlos/idiogit
Useful git snippets
https://github.com/binocarlos/idiogit
Last synced: 5 months ago
JSON representation
Useful git snippets
- Host: GitHub
- URL: https://github.com/binocarlos/idiogit
- Owner: binocarlos
- Created: 2013-11-19T18:08:03.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-19T19:30:48.000Z (almost 12 years ago)
- Last Synced: 2025-02-23T14:33:50.796Z (9 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='rodney@trotter.com' 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
```