Posts

Showing posts from March, 2023
                                        Git Commands Git clone command This command is used to make a copy of a repository from an existing URL. If I want a local copy of my repository from GitHub, this command allows creating a local copy of that repository on your local directory from the repository URL. Syntax $ git clone URL   Git add command This command is used to add one or more files to staging (Index) area. Syntax To add one file $ git add Filename   To add more than one file   $ git add*     Git commit command Commit command is used in two scenarios. They are as follows. Git commit -m This command changes the head. It records or snapshots the file permanently in the version history with a message. Syntax $ git commit -m " Commit Message"     ...