$ git status On branch Changes not staged for commit: (use “git add…” to update what will be committed) (use “git checkout —…” to discard changes in working directory) modified: modified: … “` ## 2. 保存未提交的修改 如果你想要切换分支但仍然保留这些未提交的修改,可以通过创建一...
On branch master Changes to be committed: (use "git restore --staged <file>..." to unstage) new file: Car.al Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) del...
On branch feature/myFeature-1 Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: Program.cs. myWebApp ...
(use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: CONTRIBUTING.md 1. 2. 3. 4. 5. $ git checkout -- CONTRIBUTING.md $ git status On branch master Changes to be committed: (use "git...
(use “git restore…” to discard changes in working directory) modified: file1.txt “` “` $ git add file1.txt $ git commit -m “Commit changes on develop branch” “` 或者使用 `git stash` 命令将当前分支的修改保存起来,然后切换分支再恢复修改。
STAGED CHANGES:暂存区(已add未commit)的修改 CHANGES:工作区(未add)的修改 二、直接查看对应修改文件与原状态diff 三、撤销工作区修改 直接点击Discard Changes即可将文件回复到原始状态: 四、撤销暂存区修改 需要先Unstage Changes,将该文件对应修改的状态由STAGED CHANGES转换为CHANGES,相当于撤销了InstanceSolver.py修...
因此可以将这个stash用于多个分支。On branch master Changes to be committed: new file: style.css Changes not staged for commit: modified: index.html 在默认情况下,git stash只会stash已经在缓存区域的变动(staged changes)和正在被git追踪的的文件中的变动(Unstaged changes),并不会stash工作副本下unstaged...
On branch [branch name] Your branch is up to date with ... Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in the working directory) ...
# f, fixup <commit> = like "squash", but discard this commit's log message # x, exec = run command (the rest of the line) using shell # b, break = stop here (continue rebase later with 'git rebase --continue') # d, drop...
On branch master Your branch is up to date with 'origin/master'. Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) ...