Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 470 Bytes

File metadata and controls

31 lines (26 loc) · 470 Bytes

Github

Git

Usual workflow

git add .
git commit -m "<commit message>"
git push

Uncommiting file

git restore --staged <file>

Removing file from remote repo

// To remove file locally
git rm <file>

// To keep file locally
git rm --cached <file>

Changing commit messages

git rebase -i HEAD~4  // Edit (4) based on how many commits ago

Github Actions

  1. Create a directory .github in root.