Last active
September 15, 2018 14:23
-
-
Save JQL/d10991788f59d1174a7162f09a9330e9 to your computer and use it in GitHub Desktop.
Creating a GitHub Repository and Pushing and Pulling the Repository
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
###Creating a GitHub Repository and Pushing and Pulling the Repository### | |
**Warning**: Never git add, commit, or push sensitive information to a remote repository. Sensitive information can include, but is not limited to: | |
Passwords | |
SSH keys | |
AWS access keys | |
API keys | |
Credit card numbers | |
PIN numbers | |
COMMANDS & LINKS: | |
Add a NEW project to Git on YOUR computer (only required once): | |
**Remember to change the _jlavelle-uk_ to YOUR GitHub account name and the _tutorial.git_ to your repo name** | |
HTTPS : git remote add origin https://github.com/jlavelle-uk/tutorial.git | |
SSH : git remote add origin git@github.com:jlavelle-uk/tutorial.git | |
PUSH : git push -u origin master | |
PUSH and PULL the latest changes: | |
PUSH changes from GitHub : git push | |
PULL changes from GitHub : git pull | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment