Git source code leaked
Index
Git download address, some addresses have a single download function, which is not applicable to the latter two situations, just use this
https://github.com/BugScanTeam/GitHack
Just execute the command
https://github.com/BugScanTeam/GitHack
log
- The same is the first scan found. Git leaked
- Use the GitHack tool to clone the target source code to the local
Git source code leaks are not only related to the current git version, you need to check the history
- View history
git log
- Switch version
git reset
- Compare two submissions
git diff
The previous version information will appear in git log. Be careful to switch to the source leak folder~, /dist/xxx.
Each version has a corresponding id mark, use to git diff +id号
view the version difference
Stash
When a project is being developed on the dev branch, there is a bug in the project that needs to be urgently fixed, but the content being developed is only half completed and you don’t want to submit it yet. At this time, you can use the git stash command to save the modified content to the stack area , And then smoothly switch to the hotfix branch to fix the bug. After the repair is completed, switch back to the dev branch again to restore the just saved content from the stack.
Simply put, stash is used to save the git working status to the git stack, and restore it when needed.
git stash
备份当前工作区的内容,保存到git 栈中,从最近的一次commit中读取相关内容
git stash pop
从git栈中获取到最近一次stash进去的内容,恢复工作区的内容。。获取之后,会删除栈中对应的stash。
由于可能会stash多次,git使用栈管理,我们可以使用git stash list查看所有的stash
git stash clear
清空git栈