GIT

The most basic commands Bash which will be useful for working with Git

You can learn more various Bash commands in the articles «Bash Basics» «Bash for Testers» «Bash Scripts»

Find out the current directory

$ pwd

/c/Users/aolegovich

Change the directory

$ cd /c/Users/aolegovich/Desktop/Sites

Check whether the directory has changed

$ pwd

/c/Users/aolegovich/Desktop/Sites

Create a directory

$ mkdir "hello-world"

View the contents of the directory

$ ls

hello-world/

Change the directory

$ cd hello-world/

Create a file

$ touch "index.html"

Change the directory

$ cd /c/Users/aolegovich/Desktop/Sites

Article author: Andrei Olegovich