Last active
September 15, 2018 14:23
Creating a GitHub Repository and Pushing and Pulling the Repository
This file contains hidden or 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 [email protected]: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