Skip to content

Instantly share code, notes, and snippets.

@mburakerman
Last active December 13, 2020 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mburakerman/7b56b3d537c9d7d9df890596b4a762bc to your computer and use it in GitHub Desktop.
Save mburakerman/7b56b3d537c9d7d9df890596b4a762bc to your computer and use it in GitHub Desktop.
Upload files to an existing repo with git
// Initialize the local directory as a Git repository.
git init
// Add the files in your new local repository. This stages them for the first commit.
git add .
// Commit the files that you've staged in your local repository.
git commit -m "your message"
// Sets the new remote
git remote add origin https://github.com/mburakerman/tf-video-object-detection.git
// go main branch
git branch -M main
//Pushes the changes in your local repository up to the remote repository you specified as the origin
git push -u origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment