开发者

Lazy Git repository updater

I'm using Git as the repository for my hosted-server web application.

I know the way you're supposed to use a local repository with a remote project is to copy each file you edit to your local machine and add it to the repository to keep changes up to date.

My question is: If I开发者_如何转开发 usually edit or create lots of new files every day, is there any way for me to just commit all the changes I've made all at once to my repository without having to update each file individually?


You can add them all at once (including new files) and then commit them. If you want to "rollback" you will have no way to just rollback a single file. Better create a commit for every issue you've been working on.

git add *
git commit -m "Todays changes.."
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜