kiprasmel / git-backup Goto Github PK
View Code? Open in Web Editor NEWgit-backup — like git stash, but remotely
License: GNU General Public License v2.0
git-backup — like git stash, but remotely
License: GNU General Public License v2.0
Create a Makefile
that would
/usr
location - 7b2a6f0
/usr
locationprobably use install
& gzip
utils.
maaaaybe consider windows? lmao normies
High priority, since the user has to manually add the script to his path or the appropriate /usr
location.
Same with the manual page. And the -m
option won't work since the manual page is not provided.
git push origin :branch-name
){
do_stuff
doSomeMoreStuff
} || {
check_for_error_1 && handle_error_1
checkForError2 && handleError2
}
This will be useful in restoring the git stash, independent of either a failure or success.
This will probable require a finally
thingie.
Or maybe consider wrapping the function up? Maybe?
I've been searching for a similar tool before creating it myself, and I think that it'd probably be useful to let future observers know about a (((working))) solution available.
More testing needed. The manual will probly hold the answers.
Create a function which would restore changes from
XYZ backup
latest backup
implement an option to activate this function
There's some bad sh1t happening if you run git-backup in an untracked directory.
I don't know if this also happens with just regular git stash -u
(probably?)
I need to investigate more (I just wasted an hour+ trying to recover; I succeeded, but boy was this stressful).
What helped me recover was:
git-backup
git reflog --all
and finding a commit that has a date very similar to the one found in the shell's history. Mine was identical.git stash apply <COMMIT-ISH>
Create an AUR package because I use arch btw
Edit:
For reference, just like with the Makefile, take a look at mutt-wizard's PKGBUILD.
Create a function which would list backups
Implement an option to activate this function
Make it extendable for other commands (see #4 & #5)
git rebase -i
)HEAD
points to, checking if the changes could apply without conflicts (check by commits/refs/whatever-works, if possible, to avoid having to test every backup))A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.