Git & GitHub Crash Course For Beginners

Traversy Media · 3.3M views · 2017 · 32:42

Open on YouTube

Testing, debugging & developer toolsSoftware practice, open source & careerstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as a beginner-friendly walkthrough of the basic Git and GitHub workflow, and many askers cite it as the tutorial they were following when their push failed.

Recommended by 2 people across 2 different months, 2018 to 2020.

What it is

A 2017 beginner tutorial from Traversy Media that explains what Git is and walks through the core commands, including add, commit, status and push, along with setting up a GitHub repository. It is a screen-recorded walkthrough using the command line.

What people said

Recommends David Buzatu · 2019-08 · Stack Overflow · on “How do I transport one project from one computer to another in Intelliji?”

Try this YouTube video which explains in depth how to use git [this video] . Basically, you will go to the folder with the project, right click and select (Git Bash here). Then, you will need to initialise the git by typing the command: git init Then, add the files with: git add . Make your first commit and push the changes to the repository. You just need to pull the repository afterwards on the mac. OR, you can always try the most basic form of copying a file: use an USB stick

Recommends YATIN GUPTA · 2020-07 · Stack Overflow · on “Unable to add all the files once but individually can in git”

It seem like you have another git repository(nested git repositories) initialized in the "pro1" directory. I don't think you require that. Remove ".git" from the "pro1" directory. You can use command on git bash(command line of which you have posted the screenshot): rm -rf pro1/.git Now use following command to add all the files: git add . or git add -A Another alternative is that you first commit and push the code in "pro1" directory and then try to push the code outside that directory. But that is not the recommended way of handling the git repositories. You can refer Traversy Media tutorial [this video] for quick reference. It will work for most of cases. if still you face issue, just copy and

Cites a.m · 2018-01 · Stack Overflow · on “Windows Git Error 403 - Not able to push”

I am having same issue as a previously posted question which was not answered: Git for Windows - error 403 access denied when pushing [LINK] I have since uninstalled and reinstalled git, and uninstalled the github desktop interface. The OLDUSER is a different github account I had for a set of files, I have deleted all of those files and am not logged into that account anywhere. The NEWUSER is my new account which I plan to use from this point forward. I am following this tutorial [this video] to use git from the command line instead of the Windows-GitHub interface. $ git remote add origin [LINK] fatal: remote origin already exists. $ git push -u origin master remote: Permission to CURRENTUSER/REP

Cites tbuckley · 2018-01 · Stack Overflow · on “Unable to upload local repository to GitHub”

Forgive me if I worded the title wrong, I am an absolute beginner to git, and I was following this tutorial: [this video] . For software I am using MINGW64. Everything was sucessful and I created a GitHub repository, but once I tried the command: $ git push -u origin master , I received the error: ERROR: Repository not found. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Next, I searched the internet and found that I needed to create an ssh key and upload it to GitHub. I successful completed that, and confirmed that I uploaded the correct key to my profile. After trying again, it still did not work. I am at a loss of w

Cites Tawnwen · 2018-03 · Stack Overflow · on “Fatal: master cannot be resolved to branch”

Here's a screenshot of what I'm dealing with: [LINK] I'm a new GitBash user and am getting this error when trying to push to GitHub. I was following this tutorial [this video] . So far I've not run into any problems, except I get this error when I try to push: Fatal: master cannot be resolved to branch Things I've done correctly: I am signed in I have specified my name and email using git config -global... *blah blah* Everything is committed and should be ready to push I'm on the master branch that I wish to push. I've added my remote repository using command git remote add origin [LINK] . I tried to push using the command git push -u origin master Can anyone please help?