cd to local repo containing old_branch and:
git push https://github.com/accountname/new_repo.git +old_branch:master
cd to local repo containing old_branch and:
git push https://github.com/accountname/new_repo.git +old_branch:master
Determine the file system by using the file-utility.
file image.img
Use mdconfig to link the IMG image to a virtual device.
mdconfig -a -t vnode -f /path/to/image.img -u 0
To dump a filesystem into /mnt (a filesystem mounted on a seperate disk)…
cd /mnt
dump -L -0 -f- /path/to/origin | restore -r -f-
For remote operations, pipe the restore command via ssh:
dump -L -0 -f- /path/to/origin | ssh -2 -C -l remoteuser 192.168.0.2 restore -r -f-
Edit the sudoers file:
sudo visudo
Find this line:
%sudo ALL=(ALL) ALL
To remove all untracked files:
git clean -df
For a specific file use:
git checkout path/to/file/to/revert
Set git to use the credential memory cache:
git config --global credential.helper cache
To change the default password cache timeout, enter the following:
git config --global credential.helper 'cache --timeout=3600'
# (setting is in seconds)