Skip to content

shbiom/demo_git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Useful git command

git init : Initializes a new Git repository in the current directory.

git add : Adds the specified file to the staging area, preparing it for the next commit.

git commit -m : Creates a new commit with the changes in the staging area and a descriptive message.

git push origin : Pushes the local branch to the remote repository, updating the specified remote branch.

git status : Displays the current status of the working directory, including untracked, modified, and staged files.

git diff : Shows the differences between the working directory and the latest commit.

git branch new-feature : Creates a new branch called 'new-feature' without switching to it.

git checkout -b new-feature : Creates a new branch called 'new-feature' and switches to it immediately. This is equivalent to running git branch new-feature followed by git checkout new-feature.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages