Push existing project into Github

后端 未结 18 957
天涯浪人
天涯浪人 2020-12-04 04:25

I have a folder with my project sources. How I can push this project into Github\'s repository?

I tried using this steps:

  1. I created empty repository o
18条回答
  •  感情败类
    2020-12-04 05:08

    Follow below gitbash commands to push the folder files on github repository :-
    1.) $ git init
    2.) $ git cd D:\FileFolderName
    3.) $ git status
    4.) If needed to switch the git branch, use this command : 
        $ git checkout -b DesiredBranch
    5.) $ git add .
    6.) $ git commit -m "added a new folder"
    7.) $ git push -f https://github.com/username/MyTestApp.git TestBranch
        (i.e git push origin branch)
    

提交回复
热议问题