git-basic-tutorial
basic git tutorial
git commands
-
git init - to initialize git reporsitory
-
git clone - for clonning new repository
-
git add filename | . (all) - to track untracked files
-
git commit -m 'commit message' - to confirm your changes to git and will create copy of the changes with unique id
-
git status - to check current status or changes in project or repository
-
git branch branchname - to create new branch
-
git branch - to list existing branches
-
git checkout branchname - to move exsting branch to another branch
-
git diff filename - to check difference between previous changes and current changes