Github comming from svn

Git Config:
To get ready with git add these lines to .git/config (/home/USER/project/.git/config)

[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[branch "master"]
remote = origin
merge = refs/heads/master

[remote "origin"]
url = git@github.com:username/project.git
fetch = +refs/heads/*:refs/remotes/origin/*
[gui]
geometry = 1018x659+9+104 382 207

Branches

1.Create a branch:

git branch bname # create the branch
git checkout bname # switch to the branch
git remote add bname_1 git@github.com:username/project.git # create a remote "folder" remotely
git fetch bname_1 # initialized the remofe "folder" locally
git push bname_1 bname:refs/heads/bname # initialize the remote "folder" remotely
git config branch.bname.remote bname_1 # add lines to .config file
git config branch.bname.merge refs/heads/bname # add lines to .config file

2.Switch branch:

git checkout bname # switches to bname
git checkout master # switches to master

3.Which branch am I on?:

git branch

4.Get branch from github:

git checkout --track -b bname origin/bname

5. Download a everything from github:

git clone git@github.com:username/project.git
cd project
git checkout --track -b bname origin/bname

Tags

git tag "v0.2"
git push --tags

Enjoyed reading this post?
Subscribe to the RSS feed and have all new posts delivered straight to you.
  • http://google8vyZ.com HAL

    @masngarso88 1 unfollowed you between 5PM and 6PM. See who: http://t.co/x75PnCiF

  • http://www.besttreatmentforacnescarsonface.com Henry

    I lately stumbled on your internet web site and have been reading along. i believed i’d leave my very 1st comment. Nice blog. i’ll keep visiting this website extremely frequently.

  • http://cristiana.cl/comunidad/pg/blog/ki955sahuh/read/295484/any-imaginative-structure pink ugg boots uk

    strongzz Hey very nice blog!! Man .. Excellent .. Amazing .. I will bookmark your site and take the feeds also…I’m happy to find numerous useful info here in the post, we need work out more strategies in this regard, thanks for sharing. . . . . .