Live data from Hacker News

Lesser known Git commands

hackernoon.com

141–142 of 142 posts

Re: Lesser known Git commands

#141
post #6

My personal favorite two: jschroeder@omniscience:~$ git config alias.up pull --rebase jschroeder@omniscience:~$ git config alias.down push They can be used thusly: git up && git down

I always do this together, so I just use `git push-pull` $ git help push-pull `git push-pull' is aliased to `!git pull --rebase && git push'

same functionality, my alias is "rush"

$ git rush

Re: Lesser known Git commands

#142
post #80
post #20

Earlier quoted context omitted.

"Here let me UPload the local repo to our git server" git down "Great now let me DOWNload the changes to another branch" git up What?

I think the 'up' is as in 'update' rather than 'upload', but I agree that the use of 'down' makes that confusing.

Years ago... I was a pretty prolific svn user. Coming from svn, I knew that it would fetch changes from the central server (remote in git parlance) and then rebase them with whatever you had in your local tree. This is where git up came from, literally an equivalent of svn up.
Post reply on HN