mirror of
https://github.com/cheat/cheat.git
synced 2024-11-22 14:01:36 +01:00
commit
74eca97b62
@ -22,6 +22,6 @@ git remote add upstream git@github.com:name/repo.git # Set a new repo
|
||||
git remote -v # Confirm new remote repo
|
||||
git fetch upstream # Get branches
|
||||
git branch -va # List local - remote branches
|
||||
git checkout master # Checpkout local master branch
|
||||
git checkout master # Checkout local master branch
|
||||
git merge upstream/master # Merge remote into local repo
|
||||
|
||||
|
@ -9,3 +9,6 @@ echo 'It is daytime' | sed 's/day/night/g'
|
||||
|
||||
# To remove leading spaces
|
||||
sed -i -r 's/^\s+//g' file.txt
|
||||
|
||||
# To remove empty lines
|
||||
cat file.txt | sed '/^$/d'
|
||||
|
Loading…
Reference in New Issue
Block a user