Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git collab

[Assuming you you have cloned the repo to your desktop, not a fork]

		Get into a branch to work on your stuff 
		-Git checkout -b < new branch>  -or- git checkout <ur branch>
        
1. git add .  -or- 	git add <file/folder name>
2. git commit –m “...”   (these now saved on ur branch)
3. git checkout master (change over to the master branch)
4. git pull origin master (branch up to date w master)
5. git checkout (get to the branch u were working on)
6. git merge master 
	( if anything different, not your new code but, other stuff 
    … you will have a merge conflict)
	--- > Go into your code and compare your code vs. master 
    	  delete as needed ... both are color coded to compare
          ... save one, delete the other ... your call
7. git add .  (Add the final changes)
8. git commit –m “…”
9. git push origin master
10.  Go into the GitHub.com repo and make a pull request
Comment

git collab 1

Stash your local changes:

git stash
Update the branch to the latest code

git pull
Merge your local changes into the latest code:

git stash apply
Add, commit and push your changes

git add
git commit
git push
Comment

git collab

[Assuming you you have cloned the repo to your desktop, not a fork]

		Get into a branch to work on your stuff 
		-Git checkout -b < new branch>  -or- git checkout <ur branch>
        
1. git add .  -or- 	git add <file/folder name>
2. git commit –m “...”   (these now saved on ur branch)
3. git checkout master (change over to the master branch)
4. git pull origin master (branch up to date w master)
5. git checkout (get to the branch u were working on)
6. git merge master 
	( if anything different, not your new code but, other stuff 
    … you will have a merge conflict)
	--- > Go into your code and compare your code vs. master 
    	  delete as needed ... both are color coded to compare
          ... save one, delete the other ... your call
7. git add .  (Add the final changes)
8. git commit –m “…”
9. git push origin master
10.  Go into the GitHub.com repo and make a pull request
Comment

git collab 1

Stash your local changes:

git stash
Update the branch to the latest code

git pull
Merge your local changes into the latest code:

git stash apply
Add, commit and push your changes

git add
git commit
git push
Comment

PREVIOUS NEXT
Code Example
Shell :: mac error cannot find ghostscript lobraries 
Shell :: how to install or renew https ssl in frappe bench 
Shell :: start docker api 
Shell :: proxmox change lxc name 
Shell :: lst conflit files gt 
:: which email is github using locally 
Shell :: make a question in bash script 
::  
:: execute shell command when container is being stopped 
Shell :: install wsl windows 11 
Shell ::  
Shell :: git revert file 
Shell :: bash boolean 
Shell :: restart powershell 
Shell :: linux cut all but last field 
Shell :: adavanced 
Shell :: How to Install and Configure doctl on MacOS 
:: Basic Authorization failed for user 
Shell ::  
Shell :: msysgit display end 
Shell :: Create directory junction in powershell 
Shell :: linux need manual fsck 
Shell :: install extensions devcontainer.json for codespaces 
Shell :: Could not read interface wlan0 
:: ta-lib linux 
:: docker compose kong 
Shell :: requirements github 
Shell :: heroku config:set NPM_CONFIG_PRODUCTION=false YARN_PRODUCTION=false ERROR 
Shell :: shell remove pdf pages 
:: empty 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =