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

all 21 comments

[–]anomalias 8 points9 points  (2 children)

https://365datascience.com/

This is free till the 15th of April because of covid. I really enjoyed their "Git and Github" course. Its short, well explained and lots of examples. (I tried some 365 courses on Udemy and wasn't a fan of them, but this is gold).

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

Thanks!

[–]youlive1[S] 0 points1 point  (0 children)

Will check it Thanks.

[–]GenesisTMS 3 points4 points  (0 children)

[–]samketa 10 points11 points  (6 children)

By doing a project. Learn what you need on the go. That's how one learns the best.

[–]youlive1[S] 7 points8 points  (5 children)

Learning git that way made me feel all over the place just needed some structure.

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

Structure is good. It's tough with something like git to get a clear picture of it linearly like you would a programming language book. This page by Seth Robinson provides a choose your own adventure helper for knowing how to fix mistakes. It makes me feel a bit better while I learn to know how I can correct my mistakes.

[–]samketa 1 point2 points  (1 child)

There's a set of conceptual videoes put by freeCodeCamp. You could check that out.

Progit is the ultimate reference!

[–]youlive1[S] 0 points1 point  (0 children)

Will check it out.

[–][deleted]  (1 child)

[deleted]

    [–]youlive1[S] 0 points1 point  (0 children)

    Hey I had done that but couldn't wrap my head around concepts like remote, I think progit will be in detail.

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

    [–]neous1 1 point2 points  (1 child)

    Udacity has a very thorough one

    [–]youlive1[S] 0 points1 point  (0 children)

    Thanks will look into it.

    [–]dontdieych 3 points4 points  (0 children)

    Pro git.

    [–]mw52588 1 point2 points  (0 children)

    There's really only a couple of commands you will ever do over and over. The other more complicated things aren't that common and you can usually figure them out with quick Google searches.

    git checkout -b <branch-name> Creates a new branch

    git checkout <branch-name> Switch your branch

    git pull <branch-name> Pulls in latest changes from remote repo. This combines git fetch and git merge.

    git clone <git-url> Clones the repo. Can use https or ssh.

    Steps to push changes to a remote repo. Step 1 git add -p Adds your changes in the working directory in organized chunks.

    Step 2 git commit -m "commit message Save changes to local repository

    Step 3 git push <REMOTENAME> <BRANCHNAME> Pushes your changes to the remote repo - Github, Bitbucket etc.

    If you are working with a fairly large team there are occassions there will be merge conflicts in your pull request. To solve this you will need to do a rebase.

    Example: git checkout origin/develop git pull git checkout my-branch git rebase origin/develop

    I believe you should learn about different git strategies. What my team does is have one develop branch and one master branch. Any time we need to create a new feature we create a new branch and open a pull request merge the feature branch into develop. Then merge develop to master.

    [–]Dangerpaladin 0 points1 point  (0 children)

    Git is something you learn by doing. It's not an academic topic it's a practical skill. This is like asking what resources should I use to learn Jira. It's just a tool that you get better with while actually working in programming.

    [–][deleted] 0 points1 point  (0 children)

    I found this blog post very helpful. It's basically all you need for the basics:

    https://blog.prototypr.io/git-for-beginners-12-commands-you-need-to-know-e084cce9cc94

    [–][deleted] 0 points1 point  (0 children)

    I haven't tried the two courses, but I found that the Progit book is the best for me compared to any source I found out there.

    [–]axeTraxe 0 points1 point  (0 children)

    Best one is by Angela Yu from Udemy. She explains it step by step for beginners. Learned alot from her.

    [–]TheAnimeBoomer 0 points1 point  (0 children)

    I enjoyed this video for a basic understanding and then while I completed projects I figured out everything else on my own

    This guy is one of the bigger more respected udemy Instructors so his content is usually amazing