Skip to content

Instantly share code, notes, and snippets.

Avatar

Clémentine Urquizar - curqui curquiza

View GitHub Profile
@curquiza
curquiza / rebase_from_forked_repo.md
Last active Nov 17, 2021
Git rebase from a forked repository
View rebase_from_forked_repo.md

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 Oct 23, 2017
Move yours files in your trash
View rmtrash
#!/bin/bash
if [ ! -d ~/.Trash ]
then
echo "rmtrash: the directory ~/.Trash does not exist"
exit
fi
for file in $@
do