How to create a directory
To create a directory in your project, you need to use your shell. You can learn how to start using Git on the command line and the command line basic commands before reading this documentation.
The following are the basic steps to create a directory through your shell:
Go into the repository or project that you’ll be working on:
|
|
Download the latest changes in the project, so that you work on an up-to-date copy:
|
|
Create a branch (remember you can’t add spaces, you need to use a hyphen or underscore):
|
|
Go into the file where you’d like to add the directory:
|
|
Create a directory:
|
|
Then go into the new directory:
|
|
Create a README.md or index.md in directory:
|
|
Go back one directory or file:
|
|
View the changes you’ve made (it’s important to be aware of what’s happening and what’s the status of your changes):
|
|
Add the changes to later commit (you’ll be able to see your changes in red when you type “git status”):
|
|
Check the status and you should see the name of your directory in green:
|
|
Add a commit with your changes:
|
|
Send your changes to gitlab.com:
|
|
d1b41c76
)