Please enable JavaScript.
Coggle requires JavaScript to display documents.
GIT - Coggle Diagram
GIT
configure git
git config --global user.name "faizan"
git config --global user.email
"faizanmadgaonwala@gmail.com
"
git config --global color.ui auto
this command is use to colouring command line output
git config
this will show all the options for configuration
commit
git commit -m "describe your project"
how to see the changes you have commited
git log
git show paste_the_commit_id
image
to change a file after it is added to staging area
vi file_name
add the things you want to do ; press esc then :wq
to add the changes you have done use git add . command
then git commit -m "write the message that what u have change or added"
if u want to change message of commit
git commit --amend -m "message"
git log
basic command of git
git --version
git --help
Initialising Git Repository
image
definition
Repositories in git contain a collection of files of various different versions of a project
STEPS
1) create a folder mkdir
2) go to that directory which u created
3) git init .
this command add a empty git directory in that folder & it is only for brand new project
to delete a folder of .git or any other
rm -rf folder_name
you add only when it is a git repository
4) create some files using touch command eg touch index.html
5) what ever you add in staging is shown by git status
if it is added in staging area then after git status the file will be highlighted in green color
6) git add .
this means add all files downwards from this folder in staging area
7) git add -A
this will add all files from the root folder of git till the this folder you are in
git push
image