Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

push a new branch

git push -u origin <branch-name>
Comment

push project to new branch git

git push -u origin branchName
Comment

git push in a new branch

git checkout -b <branch>
git add .
git commit -m "comment"
git push -u origin <branch>
Comment

git push local branch to existing remote

git init
# Optional: create branch
git checkout -b branch_name
git add .
git commit -m "Adds existing project to GitHub remote repository"

git remote add origin https://github.com/username/example-project.git

git pull --rebase origin main
# Resolve merge conflicts if needed
git push origin main
Comment

how to push current code to new branch git

git checkout -b my_new_branch
git commit
Comment

git push to new branch

git push <remote> <branch with new changes>:<branch you are pushing to>
Comment

push to an existing branch

pushing to an existing branch
Comment

PREVIOUS NEXT
Code Example
Shell :: atom required packages for Ubuntu 
Shell :: composer command to install vendor in magento 2 
Shell :: add second clock to windows powershell 
Shell :: bash tab adds backslash before dollar sign 
Shell :: guardar vi 
Shell :: how to check apt upgradable size 
Shell :: git switch to specific branch name 
Shell :: install ros on docker 
Shell :: grep contains two strings 
Shell :: deleting when you terminate it 
Shell :: git lfs track folder 
Shell :: run pageant on bootup 
Shell :: rename with zeros padding in loop inside subfolders 
Shell :: flask shell context processor 
Shell :: get nsg of vm az 
Shell :: autpep8 --in-place --aggressive 
Shell :: restore gpg key 
Shell :: powershell cat equivalent 
Shell :: save admin credentials for program 
Shell :: Install salt minion for Windows 
Shell :: gitlab windows containers build pipeline 
Shell :: how to know if therre is somethign to pull 
Shell :: xss-clean github 
Shell :: dgvai/laravel-adminlte-components 
Shell :: turbo top for linux 
Shell :: how to access external drives from linux chrome os 
Shell :: metasploit msf commands kali linux 
Shell :: when-i-start-ubuntu-it-enters-tty1-6-instead-of-my-desktop-how-do-i-get-to-de/65234#65234 
Shell :: oepn file in linux shell 
Shell :: run flluter,linux 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =