Last active
August 7, 2016 12:57
-
-
Save algotrader-dotcom/c1596cd8bf3380b7ddb6 to your computer and use it in GitHub Desktop.
Git & Github for current directory to remote
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
| 1. Login github.com, create repositotory with url https://github.com/thuannvn/buddypress.git | |
| 2. On local server, cd to buddypress dir | |
| git init | |
| git add . | |
| git commit -m "Import all code" | |
| git remote add origin https://github.com/thuannvn/buddypress.git | |
| git push -u origin master | |
| Enter username/password of github.com | |
| Notes: If failed in #6 then execute the following command to pull & merge README.txt | |
| git pull https://github.com/thuannvn/buddypress.git | |
| 3. Update for existing git (cloned) | |
| git add . | |
| git commit -a -m "Update code #1" | |
| git remote add origin https://github.com/thuannvn/buddypress.git | |
| git push -u origin master | |
| Enter username/password of github.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment