Distributed Version Control System - All Repositories are equal even your local one!
- https://www.atlassian.com/git/tutorials/what-is-git
- https://www.atlassian.com/git/tutorials/learn-git-with-bitbucket-cloud
From https://medium.com/@eduoshaun/difference-between-git-and-github-807f1a57d438
git clone https://github.com/ValRCS/RCS_Data_Analysis_Python_09_2019.git
-
clones whole repo in the current working directory from which you run git clone
-
git log shows revision history with SHA1 hash value for each revision
- git --version shows current git version
- git pull is like two commands into one
- git fetch + git merge pulls changes from default origin(this repo) into your local repo and merges them
- git status show current status
- git add . from project root to stage changes
- git status to make sure
- git commmit -m "My helpful commit message" to commmit locally
- git push origin to push back to master repo (Github will ask to login and pw if no SSH set)
-
git clone URL
-
cd to Projectdirectory
-
git reset --hard SHA1 where SHA1 is SHA1 of the revision you want
-
git pull to get back to HEAD revision
git fetch --all
git reset --hard origin/master
Note: this will overwrite any changes you might have made to the files locally