Click here to Skip to main content
15,907,329 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Aurora Pin
User 842029-Aug-14 2:30
User 842029-Aug-14 2:30 
GeneralOnline Git Reference Pin
Albert Holguin28-Aug-14 5:19
professionalAlbert Holguin28-Aug-14 5:19 
GeneralRe: Online Git Reference PinPopular
Jeremy Falcon28-Aug-14 5:25
professionalJeremy Falcon28-Aug-14 5:25 
GeneralRe: Online Git Reference Pin
Rage28-Aug-14 5:29
professionalRage28-Aug-14 5:29 
GeneralRe: Online Git Reference Pin
Albert Holguin28-Aug-14 5:39
professionalAlbert Holguin28-Aug-14 5:39 
GeneralRe: Online Git Reference Pin
Rage28-Aug-14 5:43
professionalRage28-Aug-14 5:43 
GeneralRe: Online Git Reference Pin
Albert Holguin28-Aug-14 5:46
professionalAlbert Holguin28-Aug-14 5:46 
GeneralRe: Online Git Reference Pin
Marc Clifton28-Aug-14 5:59
mvaMarc Clifton28-Aug-14 5:59 
Throw out everything you know about SVN, and particularly, throw out your mental model of how SVN works. Git works completely differently, and it helps to have the right mental model, starting with "everything lives on my computer locally -- branches, commits, the whole nine yards -- and the remote repository is only there to share work that I explicitly push up to it." Also, the other mental model is "everything I do, I do locally, such as commits and merges, switch branches, etc., and none of this affects the remote repository until I push the changes."

That helped me get a lot further along in understanding the git model a lot better, as I was finding the mismatch between my SVN mental model and Git's to be a rather hair pulling experience.

Also, "git reset --hard" is your friend. Smile | :)

[edit]Also, I would "invest" in a good Git UI tool. I'm using SmartGit/Hg, which is OK. However, there are times when the command line is absolutely necessary.

And finally, practice doing manual merges when rebase fails due to unresolvable conflicts. Merging manually and getting git out of the "rebase in progress" (or whatever it is) state is, in my experience, such a royal PITA that I often got hard reset and manually fold my changes back in rather than dealing with the idiotic <<<<<<< and >>>>>> representations of changes that it injects into my files. Not that that is any different from other source control systems, so I can't quite blame Git for that, except to say that it's merge process sucks as compared to how well SVN's works.

Marc

GeneralRe: Online Git Reference Pin
Albert Holguin28-Aug-14 6:09
professionalAlbert Holguin28-Aug-14 6:09 
GeneralRe: Online Git Reference Pin
Rage28-Aug-14 6:22
professionalRage28-Aug-14 6:22 
GeneralRe: Online Git Reference Pin
Kornfeld Eliyahu Peter28-Aug-14 6:51
professionalKornfeld Eliyahu Peter28-Aug-14 6:51 
GeneralRe: Online Git Reference Pin
Kornfeld Eliyahu Peter28-Aug-14 6:04
professionalKornfeld Eliyahu Peter28-Aug-14 6:04 
GeneralRe: Online Git Reference Pin
Mark_Wallace28-Aug-14 23:37
Mark_Wallace28-Aug-14 23:37 
GeneralRe: Online Git Reference Pin
KP Lee30-Aug-14 14:40
KP Lee30-Aug-14 14:40 
GeneralRe: Online Git Reference Pin
Mark_Wallace31-Aug-14 22:11
Mark_Wallace31-Aug-14 22:11 
GeneralRe: Online Git Reference Pin
KP Lee1-Sep-14 4:14
KP Lee1-Sep-14 4:14 
GeneralRe: Online Git Reference Pin
Mark_Wallace1-Sep-14 10:45
Mark_Wallace1-Sep-14 10:45 
GeneralRe: Online Git Reference Pin
KP Lee1-Sep-14 13:43
KP Lee1-Sep-14 13:43 
GeneralRe: Online Git Reference Pin
jschell29-Aug-14 7:55
jschell29-Aug-14 7:55 
GeneralRe: Online Git Reference Pin
KP Lee1-Sep-14 4:31
KP Lee1-Sep-14 4:31 
GeneralAPOD Pin
R. Giskard Reventlov28-Aug-14 4:51
R. Giskard Reventlov28-Aug-14 4:51 
GeneralRe: APOD Pin
glennPattonWork328-Aug-14 7:13
professionalglennPattonWork328-Aug-14 7:13 
GeneralAsync Nodejs Pin
M@dHatter28-Aug-14 4:32
M@dHatter28-Aug-14 4:32 
GeneralRe: Async Nodejs Pin
Rage28-Aug-14 4:42
professionalRage28-Aug-14 4:42 
GeneralRe: Async Nodejs Pin
Albert Holguin28-Aug-14 4:45
professionalAlbert Holguin28-Aug-14 4:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.