- Goto Github account.
- Click + at top and select New Repository
- Name it, select public or private, and press Create Repository
- Create or move to a new directory under local git folder, e.g. c:\data\git\xyz
- Initialize with git init
- Edit files as necessary.
- Add files to staging git add .
- Commit files git commit -m "Commit message"
- Add a shortcut for remote repository created above
git remote add origin https://github.com/CanyonCasa/xyz.git - Push files to remote
git push origin master - Go to Github and verify changes.
All these actions assume you are located in the local repo directory of choice.
git pull
git status
git add . or git add
git commit -m "commit comment"
git push
- Go to Github account.
- Copy name of repository to be removed to the clipboard.
- Click on the repository to be removed.
- The click on Settings at the top.
- Scroll to the bottom under Danger Zone.
- Click on Delete this Repository.
- Paste the name into the dialog.
- Click OK.
git config --global core.autocrlf false|true|input
use "git rm --cached <file>..." to unstage
git remote -v
git reset HEAD <file>