Script is created for automate the process of creation gitlab repository and pushing there files from current directory.
- Copy gitlab-remote-v1.0 to your directory with files.
- Script is done with the suggestion that you haven't used git in this folder before (there is no .git folder).
- Enter https://gitlab.com
- Select Profile Settings (upper right corner, dropdown list).
- Select Account Tab and copy your private token (this is very important!).
- Open terminal and cd to your directory.
- Run
./gitlab-remote-v1.0 name-of-repo private-token
For example, ./gitlab-remote-v1.0 blablabla ${token} // where blablabla is the name of repository and ${token} is your private token. - Done (you will see address location of your repo).
- Copy gitlab-remote-v1.1 to your directory with files.
- Script is done with the suggestion that you haven't used git in this folder before (there is no .git folder).
- Run in directory
./gitlab-remote-v1.1 username name-of-repo
- Done (you will see address location of your repo).
- Copy gitlab-remote-v1.2 to your directory with files.
- Script is done with the suggestion that you haven't used git in this folder before (there is no .git folder).
- Run in directory
./gitlab-remote-v1.2 username name-of-repo
- Done (you will see address location of your repo).