Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save algotrader-dotcom/c1596cd8bf3380b7ddb6 to your computer and use it in GitHub Desktop.

Select an option

Save algotrader-dotcom/c1596cd8bf3380b7ddb6 to your computer and use it in GitHub Desktop.
Git & Github for current directory to remote
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