English 中文(简体)
如何用 g子投入一个档案?
原标题:how do i go about committing one file using git?
  • 时间:2012-01-12 15:10:57
  •  标签:
  • git
  • commit

进入“地位”时,就认为:

C:cygwinhomeGITwebapps>git status
# On branch webapp_633
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#       renamed:    dir/another_dir/then_another_dir/dir_AGAIN/file.jsp -> dir/another_dir/then_another_dir/dir_AGAIN2/file.jsp
#       renamed:    dir/another_dir/then_another_dir/dir_AGAIN/file2.jsp -> dir/another_dir/then_another_dir/dir_AGAIN2/file2.jsp
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       dir/another_dir/then_another_dir/target
#       dir/dir/another_dir/then_another_dir/target
#       dir/dir/dir/another_dir/then_another_dir/target
#       dir/dir/dir/dir/another_dir/then_another_dir/target
#       dir/dir/another_dir/then_another_dir/dir/target

通常只使用“承诺——m”“质役”来承付所有档案,但此处仅改称2个档案,即研究/目标夹,而且不需要做任何事。

任何帮助?

最佳回答

未追踪的档案被投入使用,因此,你可以做到:

git commit -m "message"

如果你需要填写未经追踪的档案,你首先需要增加这些档案。

我建议

问题回答

暂无回答




相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签