0% found this document useful (0 votes)
38 views2 pages

Sample Git in Action

IMPORTNAT TOPIC CONCERNING SOFTWARE ENGINERRING

Uploaded by

p.coderation
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views2 pages

Sample Git in Action

IMPORTNAT TOPIC CONCERNING SOFTWARE ENGINERRING

Uploaded by

p.coderation
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Muhammad Essam Abdelaziz (Abouelseoud)

ITI Summer 2024


Eng. Noha Thabet

$ git clone https://github.com/CapitalAbuEssam/ITISummer2024.git


Cloning into 'ITISummer2024'...
remote: Enumerating objects: 9, done.
remote: Counting objects: 100% (9/9), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 9 (delta 0), reused 6 (delta 0), pack-reused 0
Receiving objects: 100% (9/9), done.

$ cd ITISummer2024
$ git pull
Already up to date.

$ git checkout dev


Switched to a new branch 'dev'
branch 'dev' set up to track 'origin/dev'.

$ git pull
Already up to date.

$ git branch feature2


$ git checkout feature2
Switched to branch 'feature2'

$ git status
On branch feature2
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: code.sol

no changes added to commit (use "git add" and/or "git commit -a")

$ git add code.sol


$ git commit -m "Started feature2"
[feature1 b8741fb] Started feature2
1 file changed, 1 insertion(+)

$ git add code.sol

$ git commit -m "Working on feature2"


[feature1 ea981fb] Working on feature2
1 file changed, 1 insertion(+), 1 deletion(-)

$ git add .
$ git commit -m "Finished working on feature2"
[feature1 51d587d] Finished working on feature2
1 file changed, 1 insertion(+), 1 deletion(-)

$ git checkout dev


Switched to branch 'dev'
Your branch is up to date with 'origin/dev'.

$ git push --set-upstream origin feature2


Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 16 threads
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 864 bytes | 864.00 KiB/s, done.
Total 9 (delta 6), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (6/6), completed with 2 local objects.
remote:
remote: Create a pull request for 'feature2' on GitHub by visiting:
remote:
https://github.com/CapitalAbuEssam/ITISummer2024/pull/new/feature2
remote:
To https://github.com/CapitalAbuEssam/ITISummer2024.git
* [new branch] feature2 -> feature2
branch 'feature2' set up to track 'origin/feature2'.

$ git checkout dev


Switched to branch 'dev'
Your branch is up to date with 'origin/dev'.

$ git merge feature1


Updating fa87b1f..51d587d
Fast-forward
code.sol | 1 +
1 file changed, 1 insertion(+)

$ git push
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To https://github.com/CapitalAbuEssam/ITISummer2024.git
fa87b1f..51d587d dev -> dev

You might also like