Git and Github
Git and Github
1.To create a new directory named git-workshop and navigate into it, you can use
these commands in the terminal:
mkdir git-workshop -->Creates a new directory named 'git-workshop'
cd git-workshop -->to navigate into the 'git-workshop' directory
3.You can create a new file named hello.txt and add the content "Hello Git
workshop!":
echo "Hello!" > hello.txt
ii)To commit the staged file with the message "Add hello.txt with welcome
message":
git commit -m "Add hello.txt with welcome message"