Upload your local repository on github

 


before starting create a repository in your github account


Cmd command 

Go in root folder where is your all files located 


1) git init

2) git remote add origin https://github.com/r*.git

3) git remote set-url origin https://github.com/*.git

4) git branch -M main

5) git commit -m "initial commit"

6) git add .

7) git commit -m 'message'

8) git pull origin main

9) git push origin main



Remote branch is not showing up in "git branch -r"

Update your remote if you still haven't done so:

$ git remote update
$ git branch -r




No comments:

Post a Comment

Pages