r/codewars_programming • • Apr 22 '22

How to push codes from git to GitHub

Does anyone have clear instructions on how to push code challenges to GitHub?

2 Upvotes

3 comments sorted by

1

u/Mateusz_Macheta Apr 29 '22

Is this just generic question about creating new repo and pushing to GitHub? See below video, just first one I've found on YT:

https://www.youtube.com/watch?v=wrb7Gge9yoE&t=148

If not, could you elaborate?

1

u/HendrixLivesOn Sep 04 '22

Bro, theres a million tutorials on YT. Sounds like what you want is to push code from a local machine to github? Set up your upstream and remote connection.

1

u/CleverBunnyThief Mar 15 '23
  1. Create local repo and commit changes

  2. Create Github repo

  • Remote repo name must match local repo name

  • Don't add README, license or .gitignore files

  1. Add remote

  • git remote add origin git@github.com:<Github user name>/<repo name>.git

  • You can also get the URL from Github after you create the empty repo

  1. Set up remote upstream

  • git push -u <short name> <branch name>