-
Notifications
You must be signed in to change notification settings - Fork 102
Revive a Deleted Branch
Benjamin Arnold edited this page Jun 4, 2018
·
1 revision
If you accidentally deleted a branch locally and remotely, the fix is relatively easy:
1. Open Git Bash Shell in repo
2. Type "git fsck --lost-found"
3. Type "ls .git/lost-found/commit/ | xargs git log > commitlog.txt"
4. search commitlog.txt for your commit
5. Type "git checkout -b <NewBranchName> <first 7 characters of commit ID>", where you supply both arguments inside the braces
- Coding Standards
- Setting Up
-
Contributing
-
Using Git
- [Using TortoiseGit]
- First Contributions
- Pull Requests
-
Using Git
- Debugging
- References
- Technical