Difference between revisions of "Moodle, ownCloud, GitLab, MediaWiki, vsCode, NetBeans"

From Rhomicom Wiki
Jump to navigation Jump to search
(Created page with "== GIT ==")
 
Line 1: Line 1:
 
== GIT ==
 
== GIT ==
 +
#Add Public SSH Key
 +
ssh-keygen -t ed25519 -C "RHO_ERP_WEB_KEY"
 +
GhanaRhomicom@2021|Passphrase
 +
nano /c/Users/richa/.ssh/id_ed25519.pub
 +
 +
Command line instructions
 +
You can also upload existing files from your computer using the instructions below.
 +
 +
 +
#Git global setup
 +
git config --global user.name "Richard Mensah"
 +
git config --global user.email "richarda.mensah@gmail.com"
 +
 +
Create a new repository
 +
git clone https://gitlab.rhomicom.com:8443/richard/rho_erp_web.git
 +
cd rho_erp_web
 +
touch README.md
 +
git add README.md
 +
git commit -m "add README"
 +
git push -u origin master
 +
 +
Push an existing folder
 +
cd existing_folder |cd /c/RICHARD/RHOAPPS/RHO_ERP_WEB
 +
git init
 +
git remote add origin https://gitlab.rhomicom.com:8443/richard/rho_erp_web.git
 +
git add .
 +
git commit -m "Initial ERP Web commit"
 +
git push -u origin master
 +
 +
Push an existing Git repository
 +
cd existing_repo
 +
git remote rename origin old-origin
 +
git remote add origin https://gitlab.rhomicom.com:8443/richard/rho_erp_web.git
 +
git push -u origin --all
 +
git push -u origin --tags
 +
 +
 +
git stash
 +
# Then, pull in the changes from origin.
 +
git fetch origin && git rebase origin/(branch name)
 +
# Next, add the stash back in to your working directory:
 +
git stash pop
 +
 +
echo "# mobileapp" >> README.md
 +
git init
 +
git add README.md
 +
git commit -m "first commit"
 +
git branch -M main
 +
git remote add origin https://github.com/TACMS/mobileapp.git
 +
git push -u origin main
 +
 +
 +
 +
ssh-keygen -t ed25519 -C "richarda.mensah@gmail.com"
 +
ls -al ~/.ssh
 +
eval `ssh-agent -s`
 +
ssh-add ~/.ssh/id_ed25519
 +
nano ~/.ssh/id_ed25519
 +
 +
 +
git clone --single-branch --branch <branchname> <remote-repo>
 +
git clone --single-branch --branch bernard/main git@github.com:TACMS/backendapi.git

Revision as of 13:04, 20 May 2021

GIT

  1. Add Public SSH Key

ssh-keygen -t ed25519 -C "RHO_ERP_WEB_KEY" GhanaRhomicom@2021|Passphrase nano /c/Users/richa/.ssh/id_ed25519.pub

Command line instructions You can also upload existing files from your computer using the instructions below.


  1. Git global setup

git config --global user.name "Richard Mensah" git config --global user.email "richarda.mensah@gmail.com"

Create a new repository git clone https://gitlab.rhomicom.com:8443/richard/rho_erp_web.git cd rho_erp_web touch README.md git add README.md git commit -m "add README" git push -u origin master

Push an existing folder cd existing_folder |cd /c/RICHARD/RHOAPPS/RHO_ERP_WEB git init git remote add origin https://gitlab.rhomicom.com:8443/richard/rho_erp_web.git git add . git commit -m "Initial ERP Web commit" git push -u origin master

Push an existing Git repository cd existing_repo git remote rename origin old-origin git remote add origin https://gitlab.rhomicom.com:8443/richard/rho_erp_web.git git push -u origin --all git push -u origin --tags


git stash

  1. Then, pull in the changes from origin.

git fetch origin && git rebase origin/(branch name)

  1. Next, add the stash back in to your working directory:

git stash pop

echo "# mobileapp" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/TACMS/mobileapp.git git push -u origin main


ssh-keygen -t ed25519 -C "richarda.mensah@gmail.com" ls -al ~/.ssh eval `ssh-agent -s` ssh-add ~/.ssh/id_ed25519 nano ~/.ssh/id_ed25519


git clone --single-branch --branch <branchname> <remote-repo> git clone --single-branch --branch bernard/main git@github.com:TACMS/backendapi.git