Create a new Git repository and add a local project
Create a repository on your own GitHub.
Open the command line tool and switch to the project directory to be uploaded.
Initialize the current directory as a Git repository.
git init
Add the files in the directory to the local repository.
git add .
Add all files in the current directoryIf you need to unstage a file, use the
git reset HEAD <file>
commandSubmit staged files
git commit -m "initial commit"
Copy the newly created repository address from GitHub.
Add the address of the remote repository using the command line.
git remote add origin https://github.com/theonegis/keras-examples.git
git remote -v
View remote warehouse addressPush the local repository to the remote GitHub.
git push -u origin master
If the prompt conflict can be forced to push:
git push -u origin master -f