From vcs to svn to git ..
I am thinking of blogging about my git discoveries also ..( more for my personal documentation like all my posts) :)
here is a quick cheat sheet i created for myself
svn info -> git remote show origin
svn co -> git clone
svn commit -> git commit ; git push
svn update . -> git pull
git revert
revert changes
git remote -v
show the remote hooks ( should be a link to the global repo and then to your repo)
git pull --rebase upstream master
git me the latest code from master of the upstream(usually the link you cloned)
git fech upstream
=>svn update from master ( provided upstream is master branch)
Once you've set an upstream, you can run
git pull upstream master
to pull changes on SoftLayer's
master into your local repo. Then you use
git push origin
to push them up to your GitHub fork.
https://help.github.com/articles/fork-a-repo
for ex:-
when you start a project this is what you do
1. fork
654 git clone https://github.com/user/jumpgate.git
655 cd jumpgate/
656 git remote add upstream git@github.com:softlayer/jumpgate.git
657 git fetch upstream
658 history
659 git remote -v
to go back
git rebase --soft HEAD~1
git commit -a
or
git add.
git commit --amend
and give the chang-id as footer
I am thinking of blogging about my git discoveries also ..( more for my personal documentation like all my posts) :)
here is a quick cheat sheet i created for myself
svn info -> git remote show origin
svn co -> git clone
svn commit -> git commit ; git push
svn update . -> git pull
git revert
revert changes
git remote -v
show the remote hooks ( should be a link to the global repo and then to your repo)
git pull --rebase upstream master
git me the latest code from master of the upstream(usually the link you cloned)
git fech upstream
=>svn update from master ( provided upstream is master branch)
Once you've set an upstream, you can run
git pull upstream master
to pull changes on SoftLayer's
master into your local repo. Then you use
git push origin
to push them up to your GitHub fork.
https://help.github.com/articles/fork-a-repo
for ex:-
when you start a project this is what you do
1. fork
654 git clone https://github.com/user/jumpgate.git
655 cd jumpgate/
656 git remote add upstream git@github.com:softlayer/jumpgate.git
657 git fetch upstream
658 history
659 git remote -v
to go back
git rebase --soft HEAD~1
git commit -a
or
git add.
git commit --amend
and give the chang-id as footer
No comments:
Post a Comment