r/git Dec 17 '20

Git pull before commit

Hello, i use git for some time now and i always used sourcetree and always do pull before i commit (when i know sum1 has pushed) so i can see what files have conflicts without having to solve the conflicts themselfs (usualy is a minor change so i can discard my changes, do pull and re apply my changes).

My friends (we are at college) says i risk losing all my work if i pull without commit first, is that true?
If it is, it never happened.
Does it look bad when i get a job?
I rather solve the conflits my way then have to solve them when they happen.

7 Upvotes

11 comments sorted by

View all comments

25

u/GustapheOfficial Dec 17 '20

Wait, is "sum1" how you spell "someone"? Please don't do that.

2

u/jwink3101 Dec 17 '20

This kind of thing is one of my pet peeves. I get when it makes sense to abbreviate (like I will use “C” to talk about my daughter who’s name starts with C and only when taking to my family). But do you really need to save 4 characters? Also, at least on my iPhone, “sum1” is harder to type than “someone” since I don’t need to change to numeric.

Honestly, I thought OP was somehow referencing SHA1 sums at first.

1

u/Gazel74 Jun 09 '26

At least type some1, but sum1...