Catatan

Menunjukkan catatan yang berlabel Git

git init for existing git project

Imej
Can I connect git if I downloaded the code as zip? Reference : https://stackoverflow.com/a/56179702 TL;DR short version relevant commands: git init git remote add origin git@github.com:somecompany/some-repo.git git add . git pull origin master Full story: I was having trouble cloning the repo so I eventually downloaded and expanded the zip instead. I did  git init  after which  git status  showed: On branch master No commits yet Untracked files: (use "git add <file>..." to include in what will be committed) .gitignore .rspec .ruby-version ...(all the directories of the project)... nothing added to commit but untracked files present (use "git add" to track) Then I added the origin with  git remote add origin git@github.com:somecompany/some-repo.git I did a  git fetch  which got the remote's branches info. When I did  git pull origin master  it said: From github.com:somecompany/some-repo * branch master -> FETCH_HEAD