Difference between revisions of "Troubleshooting Gitlab"

From ETSI Forge
Jump to: navigation, search
Line 1: Line 1:
== Clone on Windows: Could not resolve hostname ==
+
=== Clone on Windows: Could not resolve hostname ===
 
+
__FORCETOC__
 
If you clone a project using SSH, Windows may answer:
 
If you clone a project using SSH, Windows may answer:
  
Line 11: Line 11:
 
# Try adding a <code>/</code> after the colon, i.e: <code>...forge:etsi.org:/_username_...</code>
 
# Try adding a <code>/</code> after the colon, i.e: <code>...forge:etsi.org:/_username_...</code>
 
# Try using HTTPS instead of SSH
 
# Try using HTTPS instead of SSH
__FORCETOC__
+
 
 +
=== "Authentication Failed" when pushing on master ===
 +
If you receive a "Authentication error" while pushing your changes to the ''master'' branch, you most probably have a role "Developer" in the project, which does not allow you to push onto the master branch.
 +
 
 +
You will want to push to another branch (an existing one or a newly created), by issuing the following git command (or similar operation using a visual tool):
 +
git push origin <local-branch>:<remote-branch>
 +
 
 +
For example, if you developed a new feature you would like to contribute in a new branch called "new-feature", you will want to issue the command:
 +
git push origin new-feature:new-feature

Revision as of 12:51, 12 November 2018

Clone on Windows: Could not resolve hostname

If you clone a project using SSH, Windows may answer:

 ssh: Could not resolve hostname forge:etsi.org:_username_: Name or service
 not known.

How to fix:

  1. Check that there are not mispellings in the URL
  2. Try adding a / after the colon, i.e: ...forge:etsi.org:/_username_...
  3. Try using HTTPS instead of SSH

"Authentication Failed" when pushing on master

If you receive a "Authentication error" while pushing your changes to the master branch, you most probably have a role "Developer" in the project, which does not allow you to push onto the master branch.

You will want to push to another branch (an existing one or a newly created), by issuing the following git command (or similar operation using a visual tool):

git push origin <local-branch>:<remote-branch>

For example, if you developed a new feature you would like to contribute in a new branch called "new-feature", you will want to issue the command:

git push origin new-feature:new-feature