Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git Pull Practice #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Git Pull Practice #32

wants to merge 1 commit into from

Conversation

dplu999
Copy link

@dplu999 dplu999 commented Sep 20, 2024

Notes

[email protected]@ip-10-10-47-119:$ git clone [email protected]:dplu999/hello.git
Cloning into 'hello'...
remote: Enumerating objects: 38, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 38 (delta 0), reused 1 (delta 0), pack-reused 31 (from 1)
Receiving objects: 100% (38/38), 9.92 KiB | 230.00 KiB/s, done.
Resolving deltas: 100% (8/8), done.
[email protected]@ip-10-10-47-119:
$ git status
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
[email protected]@ip-10-10-47-119:$ ls
hello hello.py proj scratch shared-data user-data
[email protected]@ip-10-10-47-119:
$ cd scratch
[email protected]@ip-10-10-47-119:/scratch$ ls
hello_world
[email protected]@ip-10-10-47-119:
/scratch$ cd hello_world
[email protected]@ip-10-10-47-119:/scratch/hello_world$ git clone [email protected]:dplu999/hello.git
Cloning into 'hello'...
remote: Enumerating objects: 38, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (6/6), done.
Receiving objects: 100% (38/38), 9.92 KiB | 9.92 MiB/s, done.
Resolving deltas: 100% (8/8), done.
remote: Total 38 (delta 0), reused 1 (delta 0), pack-reused 31 (from 1)
[email protected]@ip-10-10-47-119:
/scratch/hello_world$ branch -a

Command 'branch' not found, but can be installed with:

apt install rheolef
Please ask your administrator.

[email protected]@ip-10-10-47-119:~/scratch/hello_world$ git branch -a
github_edits

  • local_edits
    main
    remotes/origin/HEAD -> origin/main
    remotes/origin/github_edits
    remotes/origin/local_edits
    remotes/origin/main
    [email protected]@ip-10-10-47-119:/scratch/hello_world$ ls
    README.md hello hello.py
    [email protected]@ip-10-10-47-119:
    /scratch/hello_world$ cd hello
    [email protected]@ip-10-10-47-119:/scratch/hello_world/hello$ git push --set-upstream origin hello
    error: src refspec hello does not match any
    error: failed to push some refs to 'github.com:dplu999/hello.git'
    [email protected]@ip-10-10-47-119:
    /scratch/hello_world/hello$ ls
    README.md
    [email protected]@ip-10-10-47-119:/scratch/hello_world/hello$ ls -a
    . .. .git README.md
    [email protected]@ip-10-10-47-119:
    /scratch/hello_world/hello$ git status
    On branch main
    Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean
[email protected]@ip-10-10-47-119:/scratch/hello_world/hello$ cd..
cd..: command not found
[email protected]@ip-10-10-47-119:
/scratch/hello_world/hello$ cd ..
[email protected]@ip-10-10-47-119:/scratch/hello_world$ cd ..
[email protected]@ip-10-10-47-119:
/scratch$ git clone [email protected]:dplu999/hello.git
Cloning into 'hello'...
Warning: Permanently added the ECDSA host key for IP address '140.82.114.3' to the list of known hosts.
remote: Enumerating objects: 38, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 38 (delta 0), reused 1 (delta 0), pack-reused 31 (from 1)
Receiving objects: 100% (38/38), 9.92 KiB | 9.92 MiB/s, done.
Resolving deltas: 100% (8/8), done.
[email protected]@ip-10-10-47-119:/scratch$ cd hello
[email protected]@ip-10-10-47-119:
/scratch/hello$ ls
README.md
[email protected]@ip-10-10-47-119:/scratch/hello$ git branch NF
[email protected]@ip-10-10-47-119:
/scratch/hello$ git status
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean
[email protected]@ip-10-10-47-119:~/scratch/hello$ git branch -a
NF

  • main
    remotes/origin/Feature-Branch
    remotes/origin/HEAD -> origin/main
    remotes/origin/main
    [email protected]@ip-10-10-47-119:/scratch/hello$ git switch NF
    Switched to branch 'NF'
    [email protected]@ip-10-10-47-119:
    /scratch/hello$ git push --set-upstream origin hello
    error: src refspec hello does not match any
    error: failed to push some refs to 'github.com:dplu999/hello.git'
    [email protected]@ip-10-10-47-119:~/scratch/hello$ git push --set-upstream origin NF
    Warning: Permanently added the ECDSA host key for IP address '140.82.112.3' to the list of known hosts.
    Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
    remote:
    remote: Create a pull request for 'NF' on GitHub by visiting:
    remote: https://github.com/dplu999/hello/pull/new/NF
    remote:
    To github.com:dplu999/hello.git
  • [new branch] NF -> NF
    branch 'NF' set up to track 'origin/NF'.
    [email protected]@ip-10-10-47-119:/scratch/hello$ ls
    README.md
    [email protected]@ip-10-10-47-119:
    /scratch/hello$ nano REAMDME.md
    [email protected]@ip-10-10-47-119:/scratch/hello$ git add READEME.md
    fatal: pathspec 'READEME.md' did not match any files
    [email protected]@ip-10-10-47-119:
    /scratch/hello$ ls
    README.md REAMDME.md
    [email protected]@ip-10-10-47-119:/scratch/hello$ nano README.md
    [email protected]@ip-10-10-47-119:
    /scratch/hello$ git commit README.md
    Aborting commit due to empty commit message.
    [email protected]@ip-10-10-47-119:/scratch/hello$ git push --set-upstream origin NF
    branch 'NF' set up to track 'origin/NF'.
    Everything up-to-date
    [email protected]@ip-10-10-47-119:
    /scratch/hello$ git add README.md
    [email protected]@ip-10-10-47-119:/scratch/hello$ git push --set-upstream origin NF
    branch 'NF' set up to track 'origin/NF'.
    Everything up-to-date
    [email protected]@ip-10-10-47-119:
    /scratch/hello$ git push --set-upstream origin NF
    branch 'NF' set up to track 'origin/NF'.
    Everything up-to-date
    [email protected]@ip-10-10-47-119:/scratch/hello$ ls
    README.md REAMDME.md
    [email protected]@ip-10-10-47-119:
    /scratch/hello$ git branch -a
  • NF
    main
    remotes/origin/Feature-Branch
    remotes/origin/HEAD -> origin/main
    remotes/origin/NF
    remotes/origin/main
    [email protected]@ip-10-10-47-119:/scratch/hello$ ls
    README.md REAMDME.md
    [email protected]@ip-10-10-47-119:
    /scratch/hello$ git add README.md
    [email protected]@ip-10-10-47-119:~/scratch/hello$ git status
    On branch NF
    Your branch is up to date with 'origin/NF'.

Changes to be committed:
(use "git restore --staged ..." to unstage)
modified: README.md

Untracked files:
(use "git add ..." to include in what will be committed)
REAMDME.md

[email protected]@ip-10-10-47-119:/scratch/hello$ git commit README.md
Aborting commit due to empty commit message.
[email protected]@ip-10-10-47-119:
/scratch/hello$ git commit -m "ffasf"
[NF d1890f6] ffasf
1 file changed, 1 insertion(+)
[email protected]@ip-10-10-47-119:/scratch/hello$ git push --set-upstream origin NF
Warning: Permanently added the ECDSA host key for IP address '140.82.112.4' to the list of known hosts.
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 16 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 269 bytes | 269.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To github.com:dplu999/hello.git
b378e03..d1890f6 NF -> NF
branch 'NF' set up to track 'origin/NF'.
[email protected]@ip-10-10-47-119:
/scratch/hello$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant