Hi i am new to using a Gitlab for source control.
I want to push my files into a remote repository.
Below are the steps that i have followed.
I created an empty private repository on Gitlab.
1)I cloned the repository to a local folder on my lsf using git clone.
2)I created a new branch -> test1
3)created a new file -> Jenkinsfile.txt and updated its contents.
4)git reset HEAD
5)git add Jenkinsfile
6)git commit -m “initial”
7)git checkout master
8)git merge test1
This is the final status.
$git status
On branch master
Your branch is ahead of ‘origin/master’ by 1 commit.
(use “git push” to publish your local commits)
nothing to commit, working directory clean
till here I faced no problem. I assume that I have merged the branch successfully.
Now I want to push this on the remote repository.
How do I do it?