r/learnprogramming • • Apr 29 '21

I’m just now understanding Git/GitHub and I feel like I’ve wasted the last 7 months

Word to those just starting: LEARN GIT

I’ve been slowly teaching myself web design and web development for the last 7 months, and when I first got started I read that using GitHub was important. It showed your progress for future employers and how active you are in your code. So of course I made a profile and did a quick look on how to make repos and upload stuff, but I did not understand at all what I was doing.

I started going through several casual classes and working on my own projects and I learned so much about basic html css and vanilla js. A lot of the projects demonstrated that, but I wasn’t tracking them correctly in GitHub. The last two days I sat down and REALLY learned Git and GitHub; I was horrified. I realized all my hard work didn’t reflect on my page. I realized all the times I completely restarted a site from scratch was unnecessary. It almost feels like starting from scratch.

The good part about this is that I know how to use Git effectively in all my future projects, and I think it’s the coolest tool in my arsenal. Plus, I can share my failure with others who might fall into the same trap. So yeah, if you’re just starting out, PLEASE LEARN GIT AND GITHUB.

Here’s a few links to some awesome tutorials and pages!!

Learn Git in 15 Minutes Video

Intro to Git

Learn GitHub in 20 Minutes Video

Intro to GitHub

Edit: thank you all so much for the positive feedback!! Something else I should clarify and help breakdown confusion: Git and GitHub are two totally separate things! If you’re just starting definitely begin with Git, and then transition to GitHub. This is probably a duh for most of the seasoned programmers here, but for me as a beginner it was the greatest source of confusion!!

2.5k Upvotes

124 comments sorted by

231

u/[deleted] Apr 29 '21

I realized all my hard work didn’t reflect on my page.

I'll address this one point because there seems to be a huge misconception about how employers view your GH profile. Most won't view your GH profile at all and just go off your resume. Of those that do, they will only briefly look at your repositories and the code contained within. They aren't going to look too deeply in terms of commit messages or general activity.

FYI Git does not verify anything. You can give a commit whatever timestamp or user information you want. There is a way to sign commits but in practice almost no one uses that feature. So nobody is going to put too much stock in your commit history.

Being able to hold a conversation about the design decisions and code of your project is infinitely more important than anything someone might see on your GH profile.

40

u/35boi Apr 29 '21

This is so encouraging; thank you!!

10

u/CreativeGPX Apr 29 '21

I agree for the most part and believe that sharing a github isn't really much more helpful than just sharing a list of projects you've done. Nobody is going to care that much about the contents, size, frequency, etc. in most cases.

The main thing that you're demonstrating by sharing your github is a demonstration of your competence of using git. So, I would say if you do share a github link, more important than the projects that are even in it, you want to show that you follow good git practices. Are your commit messages "made changes" or do they say what you did? Are you committing a plaintext password and some system file like thumbs.db that has nothing to do with your project? These are things that somebody who clicks onto your github for one minute can instantly see and that may instantly turn them off.

The only other case where I can see a github link benefiting you is it it shows the popularity of substantial projects and good community management, which I don't think really applies for most "learning to program" cases like this.

2

u/suarkb Apr 29 '21

This is accurate

0

u/[deleted] Apr 29 '21

[deleted]

9

u/[deleted] Apr 29 '21

Big tech can afford to be ridiculously picky and just look for any excuse to filter you out.

4

u/Kazcandra Apr 30 '21

They said the number one thing they look for is how much green squares your github profile has.

I mean, I've heard of companies that do this, but it always comes down to: that's a stupid way to measure /anything/. I worked for 3 years on private repositories -- my github activity is basically a white rectangle for anyone without access to them.

I guess you mean "professional" in the sense that they're getting paid for what they do, not that they're actually good at what they do.

1

u/WalkingPretzel Oct 08 '21

FYI... There is a checkbox in the Github settings to let it show updates to your private repositories on the overview.

1

u/Kazcandra Oct 08 '21

Regardless, it's a worthless metric.

34

u/imhypedforthisgame Apr 29 '21 edited Apr 29 '21

Would you still recommend it if I’m at a very very basic level of programming? Like I haven’t and cannot create anything remotely meaningful yet. Should I still learn it and utilize it or just learn it and wait till I make better stuff before hosting my stuff on there?

Edit: thank you all for the answers, I will start using git as soon as I start my first beginner projects!

Double edit: after reading more comments I think I’ll start using the basics of it. It won’t hurt to start.

16

u/35boi Apr 29 '21

Absolutely!! Like most people have already pointed out, the main feature of Git lets you time travel through your code. You can save your code at certain checkpoints, and then go back if you need to if your code gets out of hand. Even though it may not be necessary at the moment, getting in the practice of using it now will make your life so much easier!!

22

u/[deleted] Apr 29 '21

Absolutely!

Not necessarily GitHub/GitLab, but git itself.

Anything that you’re knocking together, it’s simple enough to organise it inside a local repo, so that you can commit your changes as you’re going along, and if you mess up, quickly revert to a good state.

If you’re on something a little more real, then even using git locally will still allow you to track your changes, do branching, etc.

It doesn’t even need to be programming projects, you can use git for other things too.

14

u/Traches Apr 29 '21

You can learn the basics in an hour or two, and that will cover 99% of what you'll ever need to do with it. The last 1% can get painful, but then you have stackoverflow.

12

u/thoflens Apr 29 '21 edited Apr 29 '21

I beg to differ here. Learning "real" programming is much more important in the beginning than learning Git. In other words: Learn Git later and focus on whatever language you're learning right now. Git'll come easy later on. If you want you can spend an hour or two learning the basics, but there's no need to go into more advanced Git yet.

9

u/CreativeGPX Apr 29 '21

I think your stance implies that learning git is hard and time consuming. It's really something you can do in an afternoon or less and in the beginning is going to just be a matter of using maybe 4 or 5 commands. I don't really consider that "basic" git, I considering it the normal and common git. The rest is edge cases that, as long as you know they're out there, you can learn as-needed. It's really no different than any big topic. I wouldn't tell a person learning C++ to learn literally every single C++ fact and concept... I'd always encourage them to learn the common stuff to get started, get using it and then approach the more narrow and advanced topics as needed. So I don't think it's really fair to say that saying "learn git" to a beginner means learning every intricacy of it and every theory of how one should organize branches and the ultra pure commit rules some have. Just get them enough info to know how to use it, then let them learn by doing... reading additional info when they run into issues. Just like how you learn to program... you don't do the exercises in a book cover to cover and now you know how to program. You read a little, then experiment a little making things up with what you read. And repeat.

For the relatively small amount of effort, I see two big advantages for people new to programming:

  1. When you're new to programming you're way more likely to screw something up without realizing it. Git helps you pinpoint what changes were so that you can understand where you might have screwed up and learn how to fix it.

  2. The best learning comes from feeling free to experiment and make changes. Having a commit history makes it much less dangerous to do so, which may help a person learn a lot more.

0

u/[deleted] Apr 29 '21

[deleted]

3

u/KryptoKevArt Apr 29 '21

What if I am someone that has

  1. wrote some personal projects over the years but never used Git?

  2. Is looking to get hired as a programmer full time

Should I upload my stuff to Git, even though I completed them a few years ago?

4

u/KardasR Apr 29 '21

If you are planning to include your GitHub profile in your resume then yeah but otherwise just uploading the projects once won’t teach you anything other than how to upload a project. Git/GitHub is more a tool to be used while developing rather than a place to show off finished projects for a potential job. If you want to do that just make a website IMO. However I would recommend to start using it now for personal projects to help dip your feet into it. It’s not too hard just takes practice to understand.

3

u/V13Axel Apr 29 '21

Quick note: You don't upload things to git. Git is a tool you run on your local computer to time-travel through your code's history and create alternate timelines. I call this an absolute necessity, if you're planning to ever write code. Version control is just an incredibly useful thing to have. It's like having an "Undo" button across all the files in your project, if you messed something up.

Github, GitLab, and many others are where you would "upload" things to - And that part isn't really necessary unless you're wanting to collaborate, or work on your code on multiple machines and take your progress between them.

3

u/lordpuddingcup Apr 29 '21

Running git commits on even early code is so good though and adds no overhead really or stress and with most new git tools for vscode for instance it makes recovering from mistakes so easy id say spending an hour to learn the super basics of git even a bit early on makes learning to program easier as well, to me sometimes git is basically the ultimate ctrl+z lol

3

u/Lazy_Waltzz Apr 29 '21

yesss i would still recommend it too because you can track and save your projects no matter how small they are

git is just a MUST learn tool in this field

2

u/thedjotaku Apr 29 '21

It's useful at the point at which you start to make projects.

A git repo will not help you if you're just writing "Hello, World". But once you start making complicated programs where you might want to try different ideas or change huge chunks of code. It's either have a directory full of projectv1.py, projectv2.py, projectv3.py, etc or use git.

If you're in university it can also be very useful when working on projects together. When I was at uni, git didn't exist. My partner was brilliant, but he used to make changes that would affect 40-50% of the codebase and then break something and couldn't get back to where we were until a few hours later. If we could have just forked off a branch for his changes, we could have quickly jumped back to working code.

1

u/[deleted] Apr 29 '21

yes, you can either use git only locally or put it in a private repository. it's a good training for later.

Plus it's not the intention and shouldn't be relied on as such BUT in reality it also serves a little as a backup. Just a few days ago I wanted to remove some temporary directory but accidentally deleted the directory with my source files instead. Oops. But luckily I've just committed and pushed my changes a few minutes before that so I didn't lose anything. I just did a checkout on that directory and had it back.

1

u/CreativeGPX Apr 29 '21

I would wait on github/gitlab. They can be handy for sharing, collaborating, backing up and distributing your project... which isn't super important at the start for all of the learning curve it'll have. Maybe just read enough to know what they are so you can reach for them when it makes more sense.

But git is helpful at all stages. Every "commit" is a snapshot of your work that you can go back to at any time. Because those commits are in a tree (where each branch is a different path forward that you took working on your project) it can help you explore different solutions without losing a solution that you want to refer back to that was working. So, that can be super helpful early in the programming process when you're trying to troubleshoot what you did to screw something up. It also allows you to be pretty fearless/experimental (which is great for learning) because it allows you to make whatever changes you want and know you can come back to this working solution.

It's also just easier to learn in the smaller context. Git with one or a few text/code files in your project is going to be easier to wrap your head around than starting out using git with a project with hundreds of files of various kinds perhaps from various people and pulling in libraries and dependencies, etc.

1

u/awkreddit Apr 29 '21

Use github desktop, it's very beginner friendly. It's a gui for git that can connect to github but you can use it locally as well without problem.

1

u/siemenology Apr 29 '21

If you feel overwhelmed by all of the complications and the disparate things you have to learn, then no, git can wait. It adds a huge layer of power to your work habits, but also a layer of complexity. Overall the complexity is definitely worth it, but as an absolute beginner I would say it's probably not worth it yet -- there's only so much new information you can absorb at once, and git knowledge is probably lower priority than a lot of other stuff right now.

On the other hand, if you are feeling great and want to learn something new, go for it! It will definitely be worth it in the long run, and learning it now will only help you later.

7

u/Sekret_One Apr 29 '21

Don't resent learning something. You gained something, not discovered a loss. Be kind to others- including your past self.

You have 2 valuable understandings, how to do this right, and how to do this wrong. The latter can be just as valuable when you go out to help or work with other people. You know what to look for if someone isn't clicking.

2

u/35boi Apr 29 '21

So true; thank you!!

3

u/hedgeyourbets_ Apr 29 '21

Another massively under-utilised use case is to host research / analysis on Github to make it open source. It doesn't even have to be code, it can be things like Excel models or draft documents that multiple people in a team are working on / that you wish to share publicly.

1

u/35boi Apr 29 '21

So true!!

2

u/Weekly-Fennel-9443 Apr 29 '21

Hi a newbie here, do I need any other basic coding knowledge to know Git?

If I could store the projects that I do while learning in Git it would be nice

3

u/35boi Apr 29 '21

Hey there!! Git is actually a program that runs in your computer, so there’s no programming language needed to use it! It’s root foundation does use the terminal/command line so that might be a little new, but if you follow the tutorials I shared in the post you have no problem at all! :)

3

u/FloydATC Apr 29 '21

While most users of git are probably programmers, many non-programmers use it to track revisions of documents etc.

Note that most good git tutorials start with the underlying data structure, but no programming experience is needed to understand it so don't let that scare you. It's far simpler than it sounds.

2

u/Weekly-Fennel-9443 Apr 29 '21

Haha i'm actually a freshman CS students.

I am learning things like Swift in free time and tbh although I barely have any idea about Git I think it will be a good place to build portfolio.

Thank you for your answer!

1

u/prometheusg Apr 29 '21

No, you don't need coding knowledge to use git. In fact, you can use git for non-coding uses, too.

Like writing a research paper. You can use it as basic backup, or as a history file. That lets you go back and forth through edits if you decide on a different take on things.

2

u/[deleted] Apr 29 '21

I have wondered when I should start doing this. Is it alright to start when you're just learning beginner stuff? Or only add to it when working on projects of a certain size/depth? Also aren't there some people out there who just push every time they change the colour of some text? Can employers tell? How do I even compete against them? Sorry about all the questions haha

3

u/35boi Apr 29 '21

Hey there! I always have a lot of questions too so be assured its normal :) It is absolutely ok to start right away as a beginner! Even if you project is just an HTML and CSS file, using Git will help track your progress and go back a few steps if needed. One of the big mistakes I made was confusing Git with GitHub; they're two different things! Git is a program that runs on your computer that allows you to track files in a folder, and go back to saved points if you'd like to. GitHub is a platform where you can upload your Git repositories so others can view and contribute. Taking a small baby step to use simple Git in your project is a great start. I'm not a professional but I would imagine that different employers have different standards of when to commit and push. When you're on your own, I think it can't hurt to commit and push anytime you sit down and code. For instance I might sit down and work on a project for an hour, and when I'm done that's usually when I'll commit and push with a summary of what I did in that session. Most people here have reassured me that most employers won't look at your git activity as much as I thought, and I think that can vary. But the ability and knowledge of how to use it will help a bunch if you do get hired in the future, since GitHub helps a bunch when working on a team with other programmers. Definitely check out the links in my post as they helped me a bunch! :)

2

u/[deleted] Apr 30 '21

Thank you so much! I will look into those links you provided and start using Git more. My knowledge is still limited on Git and GitHub so I've only been using it how I can for one major project. Looking forward to understanding it all better :)

2

u/[deleted] Apr 29 '21

What I don't understand is what I'm supposed to put on GH. Like, most of the stuff I am doing right now is really dumb and basic, someone could find better code for it in 2 minutes. Is GH supposed to be more like a portfolio, or are you supposed to put everything on there?

3

u/35boi Apr 29 '21

I think it can be used as both! My biggest recommendation is to just use Git for now, and then slowly move into GitHub as you progress. One of my biggest confusions was that Git and GitHub were the same thing and they definitely are not. Even if you are working the most basic projects check out how to use Git and become familiar, and down the road when you have to collaborate on projects in GitHub you’ll have a better grasp on it!

2

u/[deleted] Apr 29 '21

I've been learning to code and have been using git, but I find that I mostly just stick to the one master branch and commit when I've finished a task, and that has been enough for me. Should I be doing things like branching, merging, rebasing and stashing and other things that haven't really been necessary for small personal projects? Just to start getting the hang of it? Or will people look at your commits and think "why did they do all this elaborate shit for a to do list?"

I had someone ask recently for help with rebasing and I realized I haven't done it outside of a git tutorial ages ago.

2

u/35boi Apr 29 '21

There are probably more people qualified to speak on this than myself, but my personal opinion is to use what works best for your project! A lot of my projects are simple and don’t require branches, but I think it is helpful to know how it works and to practice when you might get assigned to a larger project or task. In a personal setting branches can be useful if you want to try something differently without resetting or starting from scratch. For instance I built a one page website and used media queries to make it responsive, and it worked ok. But later on I realized I could have done some things differently, so I started a new branch with a fresh media queries page. Now I can use that branch to experiment with possibly better solutions without touching the original branch, and if it works out I can merge the two with my new changes!

2

u/theorigamiwaffle Apr 29 '21

I just learned how to push a repo two days ago. Sounds kind of lame, but I've been studying for like 4 months and I'm pretty proud lol. Shit feels real.

2

u/35boi Apr 29 '21

Lol same!!! 😂😂🙏🏻

2

u/huaversion2 Apr 29 '21

Is this good advice for someone just starting out?

I can do the basics for now but not much else.

1

u/35boi Apr 29 '21

Absolutely! Just start with Git and you can still use it in your most basic projects. Transitioning to GitHub can happen later, but just getting used to it now will help a bunch!

26

u/veeeerain Apr 29 '21

There’s a Free Udacity Course on it as well

64

u/Kazcandra Apr 29 '21

Git is amazing; Github is just a place to store repositories.

41

u/botCloudfox Apr 29 '21

GitHub built pretty useful features on top of it though. Pull requests, issues, actions, bots, security alerts, dependency graphs, etc. They expanded it to allow for mass collaboration and organization.

49

u/Kazcandra Apr 29 '21

I mean, yes... But that functionality is offered by others, too.

Conflating git and github helps nobody.

4

u/RoguePlanet1 Apr 29 '21

I learned them both at the same time. Weird to see git used alone IMO.

2

u/Fatamos Apr 29 '21

Hows that even possible? ELI5 pls

3

u/Kazcandra Apr 29 '21

Github is just a service that offers git functionality online. git is a software program (which itself also has functionality for running your own git server, for what it's worth)

1

u/RoguePlanet1 Apr 29 '21

We created an account on GitHub, and learned how to push our projects and changes from the terminal (Git) to the repository. You can see the changes and notes in a visual interface on GitHub.

3

u/botCloudfox Apr 29 '21 edited Apr 29 '21

Ignoring the usefulness of GitHub and similar services also helps nobody. I was clarifying that it was not "just a place to store repositories."

6

u/bcgroom Apr 29 '21

Nobody is denying the usefulness of GitHub. But not knowing the difference between git and GitHub and especially thinking GitHub created git (I’ve seen it) will rub a lot of software engineers the wrong way.

1

u/botCloudfox Apr 29 '21

I'm not saying anyone is denying it. I'm just trying to clarify. A lot of people don't know the full power of GitHub either.

7

u/[deleted] Apr 29 '21

yes, but I personally find gitlab better - more comfortable and intuitive. plus it can be selfhosted which is pretty cool too.

7

u/[deleted] Apr 29 '21

[removed] — view removed comment

3

u/botCloudfox Apr 29 '21

The linux kernel uses mailing lists though. It's not exactly accessible to new contributors.

7

u/luisduck Apr 29 '21

Well, ed worked fine for years, too.

7

u/constantstranger Apr 29 '21 edited Apr 29 '21

[constantstranger@loclahost ~]# ed

that's cuz they made it the standard!!

?

text edito

?

r

?

?

?

wut

?

?

^C

?

10

u/raxsonicuk Apr 29 '21

Thanks hopefully I can save 7 months with your info 👍

8

u/wynio Apr 29 '21

Git makes life soo much more easy as a developer, I love it. Thanks for the article links too!

5

u/tuxkey Apr 29 '21

Thanks for sharing your thoughts and experiences. 46yr former unix admin. I always wanted to learn coding. I don’t expect to be great at it but I like to give it a try. In the past I spend a little time Scripting but always though I need to spend more time learning regex and git gitlab GitHub.. I’ll start with python and then use the info your sheared thanks again. Greetings from the Netherlands

3

u/youthisreadwrong- Apr 29 '21

I just wanted to let you know that you CAN be great at it and it's never too late. Just keep at it, you got this!

2

u/tuxkey Apr 30 '21

Thanks for the encouragement really appreciate it. There are does that tell me I should not attempt it because of my age. I’m happy there are more positive people out there that don’t like to be written off because of age or any other reason. All the best to you and everyone here. Live long and Prosper 🖖

5

u/[deleted] Apr 29 '21

Play this game if you haven't before.
https://ohmygit.org/

I only use command line thanks to it

5

u/webent Apr 29 '21

When I first learned git, I misunderstood commits and thought every time I saved a file was being tracked. Then was hit with mad confusion wandering how our why I couldn't revert to just one or two saves ago, only back to the original commit, which was the start of the project 😑 lol.

4

u/dorzzz Apr 29 '21

Saved this post. Thanks stranger

3

u/[deleted] Apr 29 '21

This blog post really made a lot of things clearer to me:

https://github.blog/2020-12-17-commits-are-snapshots-not-diffs/

Once you understand what git is doing under the hood, a lot of other stuff starts to make sense.

2

u/alycrafticus Apr 29 '21

Been programming for like a month an a halfish (on my current language anyway) and fist thing I did was set up a git, firstly, version control, you screw up you can roll back, you can branch off and see if a function, extension, or environment works well with you code. It gives you a wiki, issue tracking, todos and access to community support. Git is something every programmer should have in their toolkit

2

u/CunningPlant Apr 29 '21

The “git and GitHub boot camp” on Udemy is a great course for anyone looking. 17 hours long, but I feel like I actually know git now after literally years using the basics but not really understanding the more advanced bits.

2

u/[deleted] Apr 29 '21

Checking this out tonight, thanks!

2

u/ra3ra31010 Apr 29 '21

Thank you! Gonna check out these videos!

2

u/STINKR_13 Apr 29 '21

Thank you for this, I am on that same boat. I have an account but I still don’t understand GIt. I will definitely watch these videos

2

u/zehydra Apr 29 '21

Git gud

2

u/yfraudd Apr 29 '21

wow thank u as someone who never used it and has begun learning like u

2

u/Sad-Grapefruit9996 Apr 29 '21

Finally!!! Well said,definitely going to watch those videos. I’ve been really struggling to understand how powerful Git really is. And for some reason my UNI doesn’t teach it which is sad

2

u/not_a_gumby Apr 29 '21

Also, getting a ton of green little squares on your activity graph is one of the best things ever /s

2

u/Jackjackson401 Apr 29 '21

You dont really need to worry about the github commit tracking, its not something that is all that important. It's nice to see but it won't barr you from getting a job nor will it secure you one

2

u/TattieMafia Apr 29 '21

Thank you. This is where I'm at and I've been looking for resources on learning Git/GitHub. I'm going to save this page and go through all those links.

2

u/Zone6Representative Apr 29 '21

I feel like this about creating automated tests. I've wasted so much time manually testing everything, because automated tests just seemed so unnecessary. Boy was I wrong.

2

u/AnAsian Apr 29 '21

It's also good to learn about branching/forking strategies cause even in a professional environment people don't know how to properly use it for deployments and version control.

2

u/[deleted] Apr 29 '21

Thanks for this.

2

u/RoguePlanet1 Apr 29 '21

So git is the command line stuff? We did learn this in conjunction with GitHub, though I still get confused. Great refresher, thanks!

2

u/Uystallion Apr 29 '21

It’s just great

2

u/Ace_616 Apr 29 '21

Launch school has some awesome books. The git one taught me a lot.

https://launchschool.com/books/git

https://launchschool.com/books/

2

u/catguitar_ Apr 29 '21

THANK YOU SO MUCH!! ive been struggling with git/github

2

u/[deleted] Apr 29 '21

Thanks for this! I guess its back to the Git drawing board for me, because I still don't know how to utilize it to its full potential haha

2

u/pticjagripa Apr 29 '21

I can't tell you how many fuck ups I was able to fix with git and commiting after each small change.

But don't forget to squash into bigger commits later when you are finished.

2

u/MyBrainReallyHurts Apr 29 '21

Thank you for sharing this. I learned more about git concepts and how it works with two videos than I have from reading a ton of documentation.

2

u/BradBot Apr 29 '21

Don’t beat yourself up over it. I didn’t really start using git until 5 years into my career, and even now, 5 years later, I only use the most basic of functions.

2

u/AnonHer Apr 29 '21

Thank you

2

u/DishSoapIsFun Apr 29 '21

I look forward to checking these out

2

u/[deleted] Apr 30 '21

Great Post! I am about a week in learning Python and I took the time today to watch your recommended videos - TOTALLY WORTH IT!!! I have been avoiding git/github because it seemed so daunting but after watching the vids you posted it makes so much sense and is actually very intuitive. Thanks for the share!

2

u/noplznoplz Apr 30 '21

Starting this now. I am new to programming. I appreciate the consolidation of infooo

2

u/ReKliSMiNdSeT Apr 30 '21

Thank you for this post!!! I am in the same boat as you described yourself as being in and I have had the same thoughts. I am going to begin ACTUALLY learning about GitHub tonight when I get home thanks to the info you’ve provided

2

u/hisizzler May 17 '21

thank you for the post and the guy who made the tutorial.

after months of not understanding git&github i finally do .

it feels nice.

3

u/GreenFire317 Apr 29 '21

I thought github was a sharing platform. Not a programming language.

2

u/ganpat_chal_daaru_la Apr 29 '21

Agreed. I picked it off somewhere here that learning guy is important. Doing the colt steele course right now, and there’s a marked change and improvement in workflow already. Especially this “from scratch” part.

1

u/crunchybucket86 Apr 29 '21

Aaand at the end of completing a ticket, you'll need to squash all of your commits into one and rewrite the commit message so that's less than 50 characters

1

u/smartguy05 Apr 29 '21

When I first got into programming source control wasn't a given. There's a lot more to programming than source control, but it is important to understand how it works and how you should use it. I don't think there is a serious dev shop anymore that isn't using source control.

1

u/ultrapcb Apr 29 '21

But what do you mean exactly? Yes, git and Github are crucial for many things and essential for teams. But sometimes I restart projects from scratch just because. Opening a new branch or traveling back in time might have worked as well but sometimes a fresh start works wonder. So, still wondering about what I've missed.

1

u/Cour4ge Apr 29 '21

For those who want exercise for learning most usefull git command with real situation I can only recommend you this one

https://learngitbranching.js.org/

I have learned so much from this website

1

u/bigmanoncampus325 Apr 29 '21

Question hopefully someone can clarify for me. Does everyone use git but not everybody use github? Or are there other types of git software used in coding?

2

u/diegonolovich Apr 29 '21

GitHub is basically a company that’s created a product that is a Git repository on the cloud. Git is the underlying version control functionality that GitHub uses. You can use Git without GitHub but not vice versa. You can use Git locally on your computer as a version control software but many programmers prefer to use a cloud based solution for several reasons, including collaborating with their team and provide a fail safe against code deletion if your computer dies, for example. There are other Git based solutions that offer essentially the same or very similar functionality as GitHub, such as GitLab. The choice of which you use is yours (or your team’s)

1

u/[deleted] Jul 24 '21

0

u/Environmental_Path39 Apr 29 '21

Isn’t github just learning how to do away with lame ass programmers anyway and give the jobs to ai?

-1

u/SpaceZZ Apr 29 '21

What is with this fetish using GH profile? Most of the professionals are commiting to internal servers and not there so absolutely doesn't mean that if u don't have a lot of activity there you are doing nothing. Stop thinking so much about other people judging you.

0

u/[deleted] Apr 29 '21

[deleted]

77

u/mmlemony Apr 29 '21

Git is the tool for saving and tracking changes, GitHub, bitbucket, gitlab et al are simply places to store the repository.

Learn git and you can use any one of them. I haven’t used GitHub much for the past few years, all of my employers have used bitbucket or gitlab.

35

u/[deleted] Apr 29 '21

Oh My Git is a game that teaches you Git with this mindset, it’s really intuitive and free. I’m going to use it to teach my sister git, I’m teaching her basics of programming and Unix right now

4

u/4lokosleepytimetea Apr 29 '21

About to go try this—I’ve been having a hard time grasping git but I feel like a game would be a great way to learn. Thank you!

99

u/FoolForWool Apr 29 '21

Best eli5 for Git I've ever seen. Cheers mate.

42

u/rg4noob Apr 29 '21

You son of a bitch, I’m in.

3

u/Odd-Cancel-6371 May 05 '21

Lol. Love the reference.

1

u/khoap33 Apr 29 '21

Now reality can be……..whatever I want

0

u/[deleted] Apr 29 '21

[deleted]

8

u/Susajin Apr 29 '21

its the difference between porn and pornhub

2

u/Kaizenshimasu Apr 29 '21

That’s.... actually a good analogy lmao

9

u/lurgi Apr 29 '21

There are two links right there and the FAQ has some other links that will explain things.

0

u/[deleted] Apr 29 '21

[deleted]

13

u/[deleted] Apr 29 '21

Much as I dislike monopolies, this alone is not an argument for or against GitHub. Give your reasoning if you want to go preaching.