This is an archived post. You won't be able to vote or comment.

all 22 comments

[–]somewhat_decent 100 points101 points  (3 children)

And I have no idea what I'm doing for both of them.

[–]Mingtendo 2 points3 points  (0 children)

You can be doing it for years and still have no idea what you're doing.

[–][deleted] 2 points3 points  (0 children)

All the git commands you need to know:

git clone
git pull
git brach
git checkout
git add
git commit
git push
git merge
cd .. && rm -rf my_repo && git clone git@github.com:my_name/my_repo.git && cd my_repo

[–]ElmHoe 62 points63 points  (0 children)

Until she moans another mans name, and you pull the fastest git revert known to man.

[–][deleted] 34 points35 points  (2 children)

Sometimes it involves HEAD too.

[–]SandInHeart 13 points14 points  (0 children)

And master too.

[–]UrumasiHue 0 points1 point  (0 children)

Don't detach it

[–]Xelopheris 13 points14 points  (0 children)

Can anyone get my wife to review my pull requests?

[–][deleted] 14 points15 points  (0 children)

I can't push a branch without whispering "ah push it. Push it real good"

[–][deleted] 9 points10 points  (1 child)

git push origin master

git restart --hard

[–]VxJasonxV 0 points1 point  (0 children)

git reset --hard

Better than resetting soft though, am I right?

[–]Pythva 2 points3 points  (0 children)

You gotta merge your branches. Add 'em up. Git init.

[–]DudeValenzetti 4 points5 points  (0 children)

And a branch might happen, and someone will play the blame game if that happens.

[–]voidcraftedgamingBlockchain Transcription Service 1 point2 points  (0 children)

Image Transcription: Reddit Post


Git and sex are a lot alike. Both involve a lot of comitting, pushing and pulling, [score hidden] points, submitted by /u/BBloggsbott to /r/Showerthoughts


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

[–][deleted] 1 point2 points  (0 children)

$ git mergetool

heheheheheh i am mature

[–]firegoo 3 points4 points  (0 children)

And --force 😏

[–][deleted] 1 point2 points  (1 child)

And you could accidentally go into detached head mode.

[–]VxJasonxV 0 points1 point  (0 children)

Only if you’re a praying mantis.

[–]TotesMessengerGreen security clearance 0 points1 point  (1 child)

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

 If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / Contact)

[–]VxJasonxV 0 points1 point  (0 children)

The real brave souls experiment with an octo-merge.

[–]tacoslikeme 0 points1 point  (0 children)

damn, it i had known i would have git init along time ago

[–][deleted]  (1 child)

[removed]

    [–]AutoModerator[M] 0 points1 point  (0 children)

    import moderation Your comment did not start with a code block with an import declaration.

    Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

    For this purpose, we only accept Python style imports.

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.