GIT Series 001 - GIT Basic & Cheat Sheet
Channel: Clouds Tech Talk
Date: 02/12/2017

This video will help you to understand how you can set up GIT version control system in your local system. Also, how you can sync your local GIT repo with any cloud hosted GIT service provider such as GitHub , GitLab, IBM CLoud GIT etc. Hope, you will enjoy the video and it will be useful for your GIT journey. 

You can install GIT from below links 

Windows : http://git-scm.com/download/win
Mac : http://git-scm.com/download/mac
Linux : sudo apt-get install git-all

GIT Commands or Cheat Sheet :

 git config --global user.name "name"     Sets the name you want attached to your commit transactions
 git config --global user.email "email address"   Sets the email you want attached to your commit transactions
 git init {project-name}        Creates a new local repository with the specified name
 git clone {url}          Downloads a project and its entire version history
 git status            Lists all new or modified files to be committed
 git add {file}           Add {file} into GIT tracking for commit
 git reset {file}          Unstages the file, but preserves its contents
 git commit –m « meaningful commit message »   Records changes permanently in version history
 git branch            Lists all local branches in the current repository
 git branch {branch-name}        Creates a new branch
 git checkout {branch-name}        Switches to the specified branch and updates working directory
 git merge {branch-name}        Combines the specified branch’s history into the current branch
 git branch -d {branch-name}       Deletes the specified branch
 git reset {commit}          Undoes all commits after {commit}, preserving changes locally
 git reset --hard {commit}        Discards all history and changes back to the specified commit
 git fetch {remote}          Downloads all history from the remote repository
 git merge {remote}/{branch}       Combines the remote branch into the current local branch
 git push {remote} {branch}        Uploads all local branch commits to GitHub
 git pull            Downloads bookmark history and incorporates changes

Don't forget to SUBSCRIBE this channel to get notified on time for all upcoming videos in this Series. Also, request you to comment as appropriate about your linking and disliking about the video, so that can be considered as positive feedback for upcoming videos to improve the same.

Please visit my blogs if you prefer reading

https://cloudstechtalk.com/

You can also follow us in Facebook, Twitter and LinkedIn

https://twitter.com/cloudstechtalk  @cloudstechtalk
https://facebook.com/cloudtechtalk  @cloudtechtalk
https://linkedin.com/in/cloudstechtalk