Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

github quick reference

# Clone a repository to the current directory
git clone [REPOSITORY_CLONE_URL]

# Create a new commit with a message
git commit -m "Your commit message"

# Add files to the commit
git add .
git add ./filename.ext

# Push your commits to Github
git push origin master
git push origin [YOUR_BRANCH_NAME]

# Reset your repo to the last version
git reset --hard

# Create a new branch
git checkout -b [YOUR_BRANCH_NAME]

# Switch branches
git checkout [YOUR_BRANCH_NAME]
git checkout master

# Reset a single file
git checkout ./filename.ext
Comment

PREVIOUS NEXT
Code Example
Shell :: rickroll ssh 
Shell :: eliminare spooler di stampa 
Shell :: remote: Permission to asfand005/test.git denied to asfand87. 
Shell :: packet10 
Shell :: How to check if you are in tmux bash 
Shell :: export gitlog file 
Shell :: ubuntu set deepin terminal as default 
Shell :: to remove hidden repository 
Shell :: opensuse package manager command line 
Shell :: install WSL with Ubuntu 
Shell :: crontab reload 
Shell :: how to install unijoy in linux 
Shell :: ubuntu stop jira service 
Shell :: clone in aws linux 2 
Shell :: colcon select package 
Shell :: pyinstaller “failed to execute script” error with --noconsole option 
Shell :: gradle init scala 
Shell :: linux command check cpu type amd or not 
Shell :: Delete a carpet in linux 
Shell :: launch bash script at startup linux 
Shell :: meld between two branches 
Shell :: actualizar linux apt 
Shell :: bash print fields that begin with string 
Shell :: stop openhab2 service 
Shell :: bash forward argv to command 
Shell :: linux remove lines from file 
Shell :: chown to current user 
Shell :: grep only third match 
Shell :: chmod 400 command meaning 
Shell :: change jdk version archlinux 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =