Last active
May 2, 2017 06:51
-
-
Save mthipparthi/67c5ac80fd8fa748771bfad7ae263067 to your computer and use it in GitHub Desktop.
git commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Intitial Setup | |
git config --global user.name "Mahesh Thipparthi" | |
git config --global user.email "[email protected]" | |
## remote adding origin | |
git remote add origin https://github.com/mthipparthi/syd_pds_ato_data.git | |
## Initialize a repository in an existing directory | |
git init | |
## Get a copy of an existing repository | |
git clone URL | |
## Check the status to see changes/staged | |
git status | |
## Stage updated file | |
git add FILENAME | |
## Commit the changes | |
git commit -m "Unique message." | |
## Push the commits back to Github | |
git push origin master | |
## See the commit history | |
git log | |
#Create a branch off of develop called "feature-[feature name]", work and commit into that branch. | |
# git checkout -b feature-myfeature develop | |
Once you are done working (and everything is tested) merge your feature into develop. | |
# git checkout develop | |
# git merge --no-ff feature-myfeature | |
# git branch -d feature-myfeature | |
# git push origin develop | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment