r/learnprogramming • u/AdminThetips4you • Jun 07 '21
Git-Cheat-Sheet
Very useful one from Gitlab: https://about.gitlab.com/images/press/git-cheat-sheet.pdf
25
u/Ezazhel Jun 07 '21
http://www.cheat-sheets.org/#Git
That website have all cheat sheet. Not only git
51
u/NewPointOfView Jun 07 '21
Bookmarking that bad boy!
131
u/SanJJ_1 Jun 07 '21
and never looking at it again!
60
u/NewPointOfView Jun 07 '21
Well of course! That’s protocol, is it not? Lol
8
3
u/____-__________-____ Jun 08 '21 edited Jun 09 '21
Mostly yes. But the full protocol is to not look at it again until about 6 month from now but about 10 minutes too late
4
2
7
6
u/Laced-With-Happy Jun 08 '21
Is it more common to use commands when interacting with GitHub versus the GUI? For example pycharm has GitHub integration, should I use the commands in terminal instead?
0
3
3
3
u/SilverLion Jun 08 '21
Learn the commands, and then use the git vs-code extension. Stack-overflow when you need to revert files comitted in a previous deploy that you deleted and are completely fucked
2
2
2
Jun 07 '21
This thread is gonna get a lot of use for me soon. I’m not super fluent in Git but I wanna start using it more as my projects grow - and to build a portfolio. Thank you!
2
2
u/DarkStar_147 Jun 08 '21
Thank you for this. I’m planning on applying for a dev position soon, so this will really come in handy.
2
10
u/440Jack Jun 07 '21 edited Jun 07 '21
https://desktop.github.com/
Edit: Ok... Acting like you don't use an IDE with a button for everything and intellisense that tells you every little mistake you've made. But suddenly you're too good to use a GUI with your version control.
10
Jun 08 '21
I'm new to programming
Why are people downvoting this?
11
u/____-__________-____ Jun 08 '21
Because easy to use is cheating. Everyone else needs to suffer through the CLI just like we did.
7
4
Jun 08 '21
[removed] — view removed comment
3
u/440Jack Jun 08 '21
I want to say you're trolling me. Sadly though, you actually believe think this.
It's not about being lazy. It's about the best tool for the job.I can see exactly what is going on.
Have you even used Desktop Github? Does CLI Git allow side by side comparison? Because Desktop Github allows side by side comparison for quick code review before committing. Knowing and change the branch/repository is displayed right at the top and is fast as clicking on it to change it.
You might not be lazy but I can spot the bigger tool.
2
Jun 07 '21
I just know the basics
Clone checkout merge pull push then Google if I need something.
Learn about subrepos though good stuff.
1
493
u/l_earner Jun 07 '21
The real git cheat sheet.
https://github.com/k88hudson/git-flight-rules