Skip to content

Instantly share code, notes, and snippets.

@wavecos
Last active November 3, 2021 23:43
Show Gist options
  • Save wavecos/063ea7ac1409807db5a22406400eb54d to your computer and use it in GitHub Desktop.
Save wavecos/063ea7ac1409807db5a22406400eb54d to your computer and use it in GitHub Desktop.
#git

Git Rebase

Into source branch run dev (creo):

git fetch origin  && git fetch origin --prune && git rebase origin/dev

into destination branch: DEXX

git rebase -i dev
git push -f origin DEXX (a veces hay que usar -f)

Remove files from git control

git rm --cached file
git rm -r --cached directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment