Skip to content

Instantly share code, notes, and snippets.

View curquiza's full-sized avatar

Clémentine curquiza

View GitHub Profile
@curquiza
curquiza / rebase_from_forked_repo.md
Last active March 5, 2023 16:12
Git rebase from a forked repository

Rebase from a forked repository

Add the main repository as a remote

Remotes represent the URLs of Git repositories, e.g. origin.

Make sure you have the main repository as a remote:

$ git remote -v
@curquiza
curquiza / rmtrash
Created October 23, 2017 09:10
Move yours files in your trash
#!/bin/bash
if [ ! -d ~/.Trash ]
then
echo "rmtrash: the directory ~/.Trash does not exist"
exit
fi
for file in $@
do