문제

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.."
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top