What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-28 18:24:02
ubuntu install composer
sudo apt update sudo apt install php-cli unzip cd ~ curl -sS https://getcomposer.org/installer -o composer-setup.php HASH=`curl -sS https://composer.github.io/installer.sig` echo $HASH php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH... Add solution -
Shell/Bash 2021-08-28 15:22:01
how to move master branch to main branch
# Step 1 # create main branch locally, taking the history from master git branch -m master main # Step 2 # push the new local main branch to the remote repo (GitHub) git push -u origin main # Step 3 # switch the current HEAD to the main branch git sy... Add solution -
Shell/Bash 2021-08-28 12:33:02
git push repo
# Once a repo is cloned, you'll be working inside of the default branch (the default is `master`) git clone https://github.com/<git-user>/<repo-name> && cd <repo-name> # make changes and stage your files (repeat the `git add` com... Add solution -
Shell/Bash 2021-08-28 10:23:01
zsh autosuggestions
# Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins) git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions # Add the plugin to the list of plugins fo... Add solution