diff --git a/index.html b/index.html index aca94e7..f0b81e0 100644 --- a/index.html +++ b/index.html @@ -44,19 +44,45 @@

Web Development

FAQ

+
+ How to simply create an empty Git repo? +

git init

+
+ +
+ How to create a Git repo in specified directory? +

git init "directory_name"

+
+
How to change your Git username?

git config --global user.name "your username"

- How to change your Git email address? -

git config --global user.email [your email address here].

+ How to Create a new Branch with a name? +

git branch "branch_name"

+
+ +
+ How to Checkout existing branch with name? +

git checkout "branch_name"

+
+ +
+ How to get Updates of stage & untrack area? +

git status

- How to show your Git username? -

git config --list .

+ How to Stage all changes for the next commit? +

git add "file_name"

+
+ +
+ How to Commit the staged files with message? +

git commit -m "message"

+