GIT tips and tricks: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Remove directory == <code>git rm -r --cached foldername</code> == References == <references />") |
No edit summary |
||
Line 1: | Line 1: | ||
== Push new branch to server == | |||
<syntaxhighlight lang="bash"> | |||
#Push your new branch to server | |||
#On new branch computer or node | |||
$git push -u origin new-branch | |||
#On server, verify the new branch | |||
git pull --all | |||
Git branch -a # user should be able to show the new-branch | |||
</syntaxhighlight> | |||
== Remove directory == | == Remove directory == | ||
<code>git rm -r --cached foldername</code> | <code>git rm -r --cached foldername</code> |
Revision as of 09:07, 12 March 2024
Push new branch to server
#Push your new branch to server
#On new branch computer or node
$git push -u origin new-branch
#On server, verify the new branch
git pull --all
Git branch -a # user should be able to show the new-branch
Remove directory
git rm -r --cached foldername