GiT

Upload to Git - CLI

#navigate to folders

git init

git add <folder1> <folder2> <etc.>

git config --global user.email blah@gmail.com

********update***********

git remote set-url origin https://<githubtoken>@github.com/<username>/<repositoryname>.git

*********************

git commit -m "Your message about the commit"

*******remove*********

git remote add origin https://github.com/yourUsername/yourRepository.git

**********************

git push -u origin master

git push origin master


# UPLOAD TEST

ubuntu@thelastninja:~/dockerlab/cloudproxy$ git init

Reinitialized existing Git repository in /home/ubuntu/dockerlab/cloudproxy/.git/


git add .

git remote add origin https://github.com/DJR-FP/cloudproxy.git

git push origin master

Username for 'https://github.com': DJR-FP

Password for 'https://DJR-FP@github.com':

Enumerating objects: 24, done.

Counting objects: 100% (24/24), done.

Delta compression using up to 2 threads

Compressing objects: 100% (23/23), done.

Writing objects: 100% (24/24), 142.09 KiB | 17.76 MiB/s, done.

Total 24 (delta 5), reused 0 (delta 0)

remote: Resolving deltas: 100% (5/5), done.

remote:

remote: Create a pull request for 'master' on GitHub by visiting:

remote: https://github.com/DJR-FP/cloudproxy/pull/new/master

remote:

To https://github.com/DJR-FP/cloudproxy.git

* [new branch] master -> master

git pull origin master

Username for 'https://github.com': DJR-FP

Password for 'https://DJR-FP@github.com':

remote: Enumerating objects: 4, done.

remote: Counting objects: 100% (4/4), done.

remote: Compressing objects: 100% (2/2), done.

remote: Total 3 (delta 1), reused 0 (delta 0), pack-reused 0

Unpacking objects: 100% (3/3), 652 bytes | 652.00 KiB/s, done.

From https://github.com/DJR-FP/cloudproxy

* branch master -> FETCH_HEAD

ab9721a..aa74b3b master -> origin/master

Updating ab9721a..aa74b3b

Fast-forward

test | 2 ++

1 file changed, 2 insertions(+)

create mode 100644 test

#DOWNLOAD TEST

git add .

git commit -m "added main.yml"

git push origin master


update Git repository

git add .

git commit -m "added main.yml"

git push -u origin master


# look at auth key !!!


SORT!!!

git commit -m "change mon"

git add .

git commit -m "change mon"

git push -u origin master

# Merges updates made online with your local work

git fetch origin master

git merge remotename/branchname