Git and GitHub

Github for Beginners Reexplained - The Basics - Part 1

Install a local Git Repository

(download and install)

Useful Documentation:

Basic GIT Commands:

Steps:

  1. Install Git for Windows 
  • Note: Nominate to use GIT Bash as the default.

In your Windows Explorer
  1. Go to folder where your work is.
  2. Right Click --> Git Bash
  3. Git Init                                  - create repository in this folder
  4. Git Status
  5. Git Add .
  6. Git commit -m "reason for commit"
  7. 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)


Git and Github Part 2 (Staging and Committing)

Git and Github Part 2 (Staging and Committing)



Git and Github Part 3 (Better logging and checkouts)

Git and Github Part 3 (Better logging and checkouts)


To Checkout Code
- reverting code to a previous/alternative version

Git log --graph --decorate -all --pretty=oneline

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)


Git and Github Part 5 (Adding Collaborators & Pulling from GitHub)

Git and Github Part 5 (Adding Collaborators & Pulling from GitHub)


Git and Github Part 6 (Conflict Resolution)

Git and Github Part 6 (Conflict Resolution)





How to Install and Configure Git and GitHub on Windows



Team Collaboration with GitHub

Team Collaboration with Github

Probably better to slow this video down as she speaks VERY fast!!


Git & GitHub Crash Course For Beginners

Git & GitHub Crash Course For Beginners



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





Subpages (1): GitHub
Comments