Showing posts with label GitHub. Show all posts
Showing posts with label GitHub. Show all posts
Monday, July 29, 2013
Tuesday, June 11, 2013
Fork a svn project from Google Code to GitHub
Clone a repo:
$ git svn clone http://<PROJECT>.googlecode.com/svn <PROJECT>Enter the newly cloned directory:
$ cd <PROJECT>Setup Git repository:
$ git remote add origin https://github.com/<USER>/<PROJECT>.git
$ git push origin master
Do some work and commit locally to Git. Once something is committed to SVN, rebase your local changes against the latest changes in SVN:
$ git svn rebase
$ git push
Stay tuned!
Labels:
git,
GitHub,
Google Code,
svn
Saturday, June 8, 2013
Fork a git project from Google Code to GitHub
How to fork a git project from Google Code to GitHub:
- Create new repo on http://github.com as follows: https://help.github.com/articles/creating-a-new-repository
- Clone the project:
$ git clone https://code.google.com/p/<PROJECT>/ - Set the remote origin url:
$ git remote set-url origin https://github.com/<USER>/<PROJECT>.gitNow you can do local changes and commits. Push commits:
$ git push origin masterTo stay synced, setup upstream repository:
$ git remote add upstream https://code.google.com/p/<PROJECT>/Now you can fetch the remote repository updates from the Google Code and merge its changes into the local branch:
$ git remote -v
$ git fetch upstreamFix conflicts if necessary.
$ git merge upstream/master
Thursday, January 3, 2013
GitHub flavored markdown
Sometimes it's useful to process GitHub flavored markdown file (e.g. README.md) to generate HTML e.g. to email output for review. This can be done with help of color-marked:
$ sudo apt-get install npmNow README.md can be processed to generate README.html:
$ sudo npm install -g color-marked
$ color-marked --gfm README.md > README.html
Subscribe to:
Posts (Atom)