0% found this document useful (0 votes)
92 views

Git Task

The document shows the output of various Git commands. It begins with showing the status of changes and files committed. It then changes directories into the bash folder and lists files. The reset command is used to change the HEAD to an earlier commit. The log command prints the commit history. The checkout and pull commands are used to sync the local branch with the remote origin/master branch, fast-forwarding to the latest commit.

Uploaded by

Lissa Jackson
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)
92 views

Git Task

The document shows the output of various Git commands. It begins with showing the status of changes and files committed. It then changes directories into the bash folder and lists files. The reset command is used to change the HEAD to an earlier commit. The log command prints the commit history. The checkout and pull commands are used to sync the local branch with the remote origin/master branch, fast-forwarding to the latest commit.

Uploaded by

Lissa Jackson
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

Fast-

forward                                                                                        
 0x01-
git/bash/98     | 0                                                                            
 0x01-
git/bash/alx    | 2 +-                                                                         
 0x01-
git/bash/school | 2 +-                                                                         
 3 files changed, 2 insertions(+), 2 deletions(-)                                              
 create mode 100644 0x01-
git/bash/98                                                                                    
root@ab670f298fb0:/alx-pre_course/0x01-
git# ls                                                                                        
bash  c  js  README.md                                                                         
root@ab670f298fb0:/alx-pre_course/0x01-
git# cd bash/                                                                                  
root@ab670f298fb0:/alx-pre_course/0x01-
git/bash# ls                                                                                   
98  alx  school                                                                                
root@ab670f298fb0:/alx-pre_course/0x01-git/bash# git reset --
hard c950084                                                                              
HEAD is now at c950084 Starting to code today, so cool                                         
root@ab670f298fb0:/alx-pre_course/0x01-
git/bash# ls                                                                                   
alx  school                                                                                    
root@ab670f298fb0:/alx-pre_course/0x01-git/bash# git log --oneline --
all                                                                               
47c3637 (origin/update_script, update_script) My personal work                                 
5a5bb1f (origin/master) My personal work                                                       
c950084 (HEAD -
> master) Starting to code today, so cool                                                      
0d4d6ad A second commit                                                                        
d4a29cc My first commit                                                                        
root@ab670f298fb0:/alx-pre_course/0x01-
git/bash# git checkout master                                                                  
Already on 'master'                                                                            
Your branch is behind 'origin/master' by 1 commit, and can be fast-
forwarded.                                                                          
  (use "git pull" to update your local branch)                                                 
root@ab670f298fb0:/alx-pre_course/0x01-
git/bash# git pull                                                                             
Updating c950084..5a5bb1f                                                                      
Fast-
forward                                                                                        
 0x01-
git/bash/98     | 0                                                                            
 0x01-
git/bash/alx    | 2 +-                                                                         
 0x01-
git/bash/school | 2 +-                                                                         
 3 files changed, 2 insertions(+), 2 deletions(-)                                              
 create mode 100644 0x01-
git/bash/98                                                                                    
root@ab670f298fb0:/alx-pre_course/0x01-
git/bash# ls                                                                                   
98  alx  school                                                                                
root@ab670f298fb0:/alx-pre_course/0x01-

You might also like