Git : Ubuntu: Url has no scheme
You're seeing this problem because your URL has no scheme. In a URL like https://github.com/git/git.git, the scheme is the https
portion. When you try to do a pull, you're invoking the credential helper to get credentials, and as of the recent security update, not specifying a scheme is a fatal error.
If you want to use an HTTPS URL, then you need to specify a full, valid URL, including the scheme, which you can do with a command like the following:
git remote set-url origin https://github.com/djokicpn/MyRepoHere
Authenticate with GitHub using a token
Your curl
command is entirely wrong. You should be using the following
curl -H 'Authorization: token <MYTOKEN>' ...
That aside, that doesn't authorize your computer to clone the repository if in fact it is private. (Taking a look, however, indicates that it is not.) What you would normally do is the following:
git clone https://scuzzlebuzzle:<MYTOKEN>@github.com/scuzzlebuzzle/ol3-1.git --branch=gh-pages gh-pages
That will add your credentials to the remote created when cloning the repository. Unfortunately, however, you have no control over how Travis clones your repository, so you have to edit the remote like so.
# After cloning
cd gh-pages
git remote set-url origin https://scuzzlebuzzle:<MYTOKEN>@github.com/scuzzlebuzzle/ol3-1.git
That will fix your project to use a remote with credentials built in.
Warning: Tokens have read/write access and should be treated like passwords. If you enter your token into the clone URL when cloning or adding a remote,
Git writes it to your .git/config file in plain text, which is a security risk.
Authenticate with GitHub using a token
Your curl
command is entirely wrong. You should be using the following
curl -H 'Authorization: token <MYTOKEN>' ...
That aside, that doesn't authorize your computer to clone the repository if in fact it is private. (Taking a look, however, indicates that it is not.) What you would normally do is the following:
git clone https://scuzzlebuzzle:<MYTOKEN>@github.com/scuzzlebuzzle/ol3-1.git --branch=gh-pages gh-pages
That will add your credentials to the remote created when cloning the repository. Unfortunately, however, you have no control over how Travis clones your repository, so you have to edit the remote like so.
# After cloning
cd gh-pages
git remote set-url origin https://scuzzlebuzzle:<MYTOKEN>@github.com/scuzzlebuzzle/ol3-1.git
That will fix your project to use a remote with credentials built in.
Warning: Tokens have read/write access and should be treated like passwords. If you enter your token into the clone URL when cloning or adding a remote,
Git writes it to your .git/config file in plain text, which is a security risk.
Authenticate with GitHub using a token
Your curl
command is entirely wrong. You should be using the following
curl -H 'Authorization: token <MYTOKEN>' ...
That aside, that doesn't authorize your computer to clone the repository if in fact it is private. (Taking a look, however, indicates that it is not.) What you would normally do is the following:
git clone https://scuzzlebuzzle:<MYTOKEN>@github.com/scuzzlebuzzle/ol3-1.git --branch=gh-pages gh-pages
That will add your credentials to the remote created when cloning the repository. Unfortunately, however, you have no control over how Travis clones your repository, so you have to edit the remote like so.
# After cloning
cd gh-pages
git remote set-url origin https://scuzzlebuzzle:<MYTOKEN>@github.com/scuzzlebuzzle/ol3-1.git
That will fix your project to use a remote with credentials built in.
Warning: Tokens have read/write access and should be treated like passwords. If you enter your token into the clone URL when cloning or adding a remote,
Git writes it to your .git/config file in plain text, which is a security risk.
How to get the value of const string& in C++
Simply do
string returnVal = value;
Since value is not a pointer but a reference you do not need the pointer-dereferencing-operator (otherwise it would be const string *value).
Related Topics
Ubuntu Equivalent of Yum's Whatprovides, to Find Which Package Provides a File
Hook into Linux Key Event Handling
For Loop for Files in Multiple Folders - Bash Shell
Why No Zero-Copy Networking in Linux Kernel
Poorly-Balanced Socket Accepts with Linux 3.2 Kernel VS 2.6 Kernel
How to Limit the Cache Used by Copying So There Is Still Memory Available for Other Caches
How to Repeat a Dash (Hyphen) in Shell
How to Get Debugging Symbols Working in Linux Perf Tool Inside Docker Containers
Grep String Inside Double Quotes
Null Modem Emulator (Com0Com) for Linux
How to Identify Multiple Usb-Serial Adapters Under Ubuntu 10.1
What Does "$1/*" Mean in "For File in $1/*"
How to Update Cudnn to a Newer Version
Bash And/Or .Bashrc Not Working Properly After Su or Ssh Login Unless Run "Bash" Command
How to Stop 'Uninterruptible' Process on Linux