And I will begin with :
git checkout revision/branch path/to/filefor checking out into the working tree a particular version of a particular file. So :
git checkout HEAD path/to/filewould revert all changes in file relative to the
Push a local branch to a different remote branch :
git push -v -u remote_repo local_branch:remote_branchas in git push -v -u origin github:master. -v is verbose -u is to set the local tracking the remote branch. Add -n for dry-run.
Push all branches/tags up to the remote repo :
git push --allFrom here. Don't be in a hurry though - make sure you really want to push everything.
git push --tags
See all commits messages in a range between commits abc... and def... affecting a single file :
git log oldhash..newhash -- path/to/inspectnotice the 2 dots.
Ah - the subject of gitignore - this merits a post but for starters here is the syntax.
See all files that have the assume unchanged bit set :
Free private git repos are sought after. I went for assembla for a (school) project were I needed many (>5) people - but I'd go for bitbucket (I like the UI better). Github unfortunately does not offer private for free. Anyway - from the previous post I got two links describing how one could set up a git repo on their Dropbox account.
Links :
Git Reference
For windoz : http://nathanj.github.com/ gitguide/tour.html
2013.09.21 19.01 UTC
See all files that have the assume unchanged bit set :
git ls-files -vI use the msgit gui to stage/commit separate lines/hunks. If ever interested in how one can do this via console (which sounds like an absolute chore) here is a great post about that.
Free private git repos are sought after. I went for assembla for a (school) project were I needed many (>5) people - but I'd go for bitbucket (I like the UI better). Github unfortunately does not offer private for free. Anyway - from the previous post I got two links describing how one could set up a git repo on their Dropbox account.
Links :
Git Reference
For windoz : http://nathanj.github.com/
2013.09.21 19.01 UTC
No comments:
Post a Comment