开发者

Using Git on OS X - uploading not happening?

Mac 10.6 – I am getting all the right signals in my command line when I save out to Git... but nothing appears in my Git webspace folder?

When I type in which git it returns /usr/local/git/bin/git – is 开发者_运维百科this correct as am new to all this.

I did set up the .gitconfig file and placed it in my Home folder – should it be in the project root directory maybe?


From what you're writing, Git seems to work perfectly.

Assume you have a git repo in your local directory, say ~/src/project_dir. Then this directory will have a child dir called .git. This is the repository. Whenever you do a commit, changes get committed to this repository.

What do you mean with Git webspace folder? Is this a remote repository (e.g. at github) that you want to push the changes to? In that case, you have to setup the remote repository first as described in this answer.


When you commit changes to a git repository, it isn't stored in a central system repository. It sounds like you're expecting commits made in /src/website/ to be committed to /usr/local/git/, when they would instead be stored in the repository at /src/website/.git by default.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜