Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. Create a folder called learn_git".
mkdir learn_git
  1. Cd (change directory) into the learn_git folder.
cd learn_git

Create a file called third.txt.

touch third.txt

initialize an empty git repository.

git init

Add third.txt to the staging area.

git add third.txt

Commit with the message "adding third.txt".

git commit -m  "adding third.txt"

Check out your commit with git log.

git log

Create another file called fourth.txt.

touch fourth.txt

Add fourth.txt to the staging area.

git add fourth.txt

Commit with the message "adding fourth.txt".

git commit -m "adding fourth.txt"

Remove the third.txt file.

rm third.txt

Add this change to the staging area.

git add .

Commit with the message "removing third.txt".

git commit -m "removing third.txt"

Check out your commits using git log.

git log

Change your global settings to core.pager=cat.

git config --global core.pager "cat"

List all the global configurations for git on your machine.

git config --global --list

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors