Saturday, September 17, 2011

#googlecode now allows git

google's blog post (25 august 2011)

if you maintain a googlecode repository you can now switch to git.
(there is also mercurial support)

here are some notes on how to start:

new local repository:
git clone https://username@code.google.com/p/projectname/
[enter googlecode pass and/or set it permanently in .netrc]
warning: You appear to have cloned an empty repository.
[cd into dir and create some file test.txt]
git add .
git commit -m "first commit"
git log
git push origin master
git ls-remote origin
[should show hash of remote refs/heads/master and HEAD]

to create a new branch:
git branch newbranch
git checkout newbranch
git push origin newbranch
git ls-remote origin
[should show that newbranch is present as remote]
--

0 comments: