Github for Beginners Reexplained - The Basics - Part 1 VIDEO
Install a local Git Repository
(download and install)
Useful Documentation:
Basic GIT Commands:
Steps:
Note: Nominate to use GIT Bash as the default.
In your Windows Explorer
Go to folder where your work is. Right Click --> Git Bash Git Init - create repository in this folder Git Status Git Add . Git commit -m "reason for commit" Git log --graph --decorate --all --pretty=oneline git config --global user.name "Your Name" git config --global user.email "[email protected] "
other commands git clone (url) git add (file names) git commit -m "(committed message)"
git push -u origin master git remote add origin master (url)
REMEMBER: "Commit Early and Commit Often"
Git and Github Part 1 (Setting up a local repo) VIDEO
Git and Github Part 2 (Staging and Committing)Git and Github Part 2 (Staging and Committing) VIDEO
Git and Github Part 3 (Better logging and checkouts)Git and Github Part 3 (Better logging and checkouts) VIDEO
To Checkout Code
- reverting code to a previous/alternative version
Git log --graph --decorate -all --pretty=onelin e
This will return the GIT Id for each "commit" version
Copy the ID linked to a version.
paste in after the checkout command...
Git checkout <Git Id>
You can if you wish create a "branch" at the point...
Git checkout -b "branch name"
or go back to Current Master
Git checkout master
If you want to return to the original version
Git and Github Part 4 (GitHub Setup - Creating and Pushing to repositories)Git and Github Part 4 (GitHub Setup - Creating and Pushing to repositories) VIDEO
Git and Github Part 5 (Adding Collaborators & Pulling from GitHub)Git and Github Part 5 (Adding Collaborators & Pulling from GitHub) VIDEO
Git and Github Part 6 (Conflict Resolution)Git and Github Part 6 (Conflict Resolution) VIDEO
How to Install and Configure Git and GitHub on Windows VIDEO
Team Collaboration with GitHub
Team Collaboration with Github VIDEO
Probably better to slow this video down as she speaks VERY fast!!
Git & GitHub Crash Course For BeginnersGit & GitHub Crash Course For Beginners VIDEO
Connecting to GitHub from local repository
git remote add origin master (url)
git remote add origin https://github.com/jlaispx/2018-12IPT-MajorProject.git
git push -u origin master
If you get the following error:
fatal: unable to access 'https://github.com/jlaispx/2018-12IPT-MajorProject.git/': SSL certificate problem: self signed certificate in certificate chain
git config --global http.sslVerify false