1. To initialize and setup a git central repository
> git --bare init central_repo
2. To push to central repo from clone
> git push origin master
3. To check available branches
> git branch
4. To create a branch
> git checkout -b <branch name> origin/master
> git checkout -b <branch name> origin/<existing branch name>
5. To reset changes on branch
> git reset --hard <old branch name>
http://help.github.com/git-cheat-sheets/
No comments:
Post a Comment