Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

Flèche

[github] 원격 repo 속의 폴더에 파일을 직접 push하는법 본문

github

[github] 원격 repo 속의 폴더에 파일을 직접 push하는법

철학자 2021. 3. 12. 21:12

git add

git remote .... repository주소

 

이걸로 하면 안되는구나 ㅠ

 

 

 

How to push a file inside a folder made in a github repository?

I am assuming that you are solely using Github Web Interface to upload file in a folder of your repository. If that's the case, you should go to your repository and then go into the folder you want to create file in and follow instructions given in their documentation:

https://help.github.com/articles/adding-a-file-to-a-repository/

  1. Under your repository name, click Upload files.
  2. Drag and drop the file or folder you'd like to upload to your repository onto the file tree.
  3. At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file.
  4. Below the commit message fields, decide whether to add your commit to the current branch or to a new branch. If your current branch is master, you should choose to create a new branch for your commit and then create a pull request.
  5. Click Commit changes.

Edit:

Using git commands:

git clone <repository_link> #(Https/SSH) # make required changes to this cloned local repository git add --all # stage all the changes git commit -m 'your commit message' # commit into the repository git push <origin> <branch> # push to the remote repository # To list available upstreams of this repository <origin>: git remote -v # To see branch you are on: git branch