- Create a profile (
~/.unison/bidirsync.prf):
# Unison preferences
label = bi-directonal sync with server
root = /home/<user>/git
root = ssh://<user>@<server-name>//home/<user>/sync/git
sshargs = -oIdentityFile=/home/<user>/.ssh/<privkey-name>
| REM Delete eval folder with licence key and options.xml which contains a reference to it | |
| for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do ( | |
| for /d %%a in ("%USERPROFILE%\.%%I*") do ( | |
| rd /s /q "%%a/config/eval" | |
| del /q "%%a\config\options\other.xml" | |
| ) | |
| ) | |
| REM Delete registry key and jetbrains folder (not sure if needet but however) | |
| rmdir /s /q "%APPDATA%\JetBrains" |
| —– BEGIN LICENSE —– | |
| Mifeng User | |
| Single User License | |
| EA7E-1184812 | |
| C0DAA9CD 6BE825B5 FF935692 1750523A | |
| EDF59D3F A3BD6C96 F8D33866 3F1CCCEA | |
| 1C25BE4D 25B1C4CC 5110C20E 5246CC42 | |
| D232C83B C99CCC42 0E32890C B6CBF018 | |
| B1D4C178 2F9DDB16 ABAA74E5 95304BEF | |
| 9D0CCFA9 8AF8F8E2 1E0A955E 4771A576 |
| #!/bin/bash | |
| # `gitea dump` doesn't currently back up LFS data as well, only git repos | |
| # It primarily backs up the SQL DB, and also the config / logs | |
| # We'll backup like this: | |
| # * "gitea dump" to backup the DB and config etc | |
| # * tar / bzip all the repos since they will be skipped | |
| # * Not rotated because git data is immutable (normally) so has all data | |
| # * rsync LFS data directly from /volume/docker/gitea/git/lfs | |
| # * No need for rotation since all files are immutable |
Run this command in powershell as administrator
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
| ## Delete a remote branch | |
| $ git push origin --delete <branch> # Git version 1.7.0 or newer | |
| $ git push origin :<branch> # Git versions older than 1.7.0 | |
| ## Delete a local branch | |
| $ git branch --delete <branch> | |
| $ git branch -d <branch> # Shorter version | |
| $ git branch -D <branch> # Force delete un-merged branches | |
| ## Delete a local remote-tracking branch |