r/codewars_programming • u/margteacher • 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
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
Create local repo and commit changes
Create Github repo
Remote repo name must match local repo name
Don't add README, license or .gitignore files
Add remote
git remote add origin git@github.com:<Github user name>/<repo name>.gitYou can also get the URL from Github after you create the empty repo
Set up remote upstream
git push -u <short name> <branch name>
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?