- check with `git remote -v` if you have an origin stream (my repository) and a stream called `fork` (your fork)
## Basic commands
-`git status`: This command shows the status of your repository, including which files have been modified but not yet added or committed.
-`git diff`: This command shows the differences between the version of the files in your repository and the version of the files currently on your filesystem.
...
...
@@ -20,34 +28,15 @@ This is a short README to our git workshop.
## Create tags
-`git tag -a v1.4 -m 'version 1.4'`: This command defines a new version 1.4
## Getting started
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
## Integrate with your tools
-[ ] [Set up project integrations](https://git.rwth-aachen.de/christian.strauch/git-tutorial/-/settings/integrations)
## Collaborate with your team
-`git push origin <tag_name>`: This commands pushes the tag to the remote repository (example: `git push origin v1.4`)
-[ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
-[ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
-[ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
-[ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
## Working with forks
-`git clone <repository>`: This command creates a local copy of a remote repository.
-`git fork <upstream_repository>`: This command creates a fork of the specified upstream repository on your GitHub account.
-`git pull <upstream_repository> <branch>`: This command pulls changes from the specified upstream repository and branch into your local repository.
-`git push <remote> <branch>`: This command pushes the specified branch to the specified remote repository. example: `git push fork main`
## Test and Deploy
Use the built-in continuous integration in GitLab.
-[ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
-[ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
-[ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
-[ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
-[ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)