Re: GIT vs Other: Need argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andy Parkins wrote:
svn update = git pull

That's not quite equivalent, and it's one of the biggest annoyances svn users seem to have when starting up with git in my observation (having gone through it myself and watched a few other people at my company do so.) svn update will merge upstream changes into your locally edited but not yet committed files. git pull will just complain if you have uncommitted local edits to files that changed upstream.

To avoid that problem, my workflow often looks like

git commit -a -m "dummy revision"
git fetch
git rebase origin/master
git reset --soft HEAD^

which IMO is something the tool should be doing for me. Cogito's cg-update would do this for me, but Cogito hasn't kept up with recent git changes so aside from cg-admin-rewritehist I never use it. Please tell me if the above is doable in fewer commands, by the way.

-Steve
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]