Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Branching in a repository

$ git branch my_feature   # Creating the branch  
$ git checkout my_feature   # Changing the codebase so that we're on that branch now  
$ git checkout -b my_feature   # This does the two previous operations in one ;)  
$ git add file1 file2  
$ git commit -m "Meaningful commit message"   # We didn't just commit this on the master branch like last time, but on the my_feature one  
$ git add .  
$ git commit -m "Other meaningful commit message"  
$ git push origin my_feature   # Notice: we're not pushing master anymore, you just create a new remote branch
Comment

PREVIOUS NEXT
Code Example
Shell :: unity windows build support failed to install arch linux 
Shell :: fish shell ssh agent autostart 
Shell :: echo object command line 
Shell :: forward parameters batch script 
Shell :: another command in awk field 
Shell :: excape all quates awk in file 
Shell :: reset nvram/pram 
Shell :: archlinux Unable to install Yay, Paru and Endeavouros Keyring 
Shell :: This script uses variables to make a backup of my home directory. 
Shell :: WSL2 SystemD-Genie AutoStarts with windows 
Shell :: configure rest api for docker in windows 
Shell :: linux convert multiple images 
Shell :: nmap -sY command use 
Shell :: The command below uses du, sort, and head to show the top five largest files, starting from your /home directory: 
Shell :: docker compose logs container stdout 
Shell :: mac upgrade jmeter 
Shell :: Inspecting commands 
Shell :: mention profile sls deploy 
Shell :: scapy tutorials for mac 
Shell :: Ubuntu username format 
Shell :: environment variables not showing in process.env in create react app in js 
Shell :: node specific version install 
Shell :: see wifi password 
Shell :: linux "echo -e" 
Shell :: how can I use eog command in windows subsystem linux? 
Shell :: how to tell if i have cuda installed 
Shell :: sleep until time bash 
Shell :: how to download gnome screensaver on linux 
Shell :: how to validate a mobile number in shell script 
Shell :: apt-get install ping?trackid=sp-006 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =