Skip to content

Instantly share code, notes, and snippets.

View GwG422's full-sized avatar
🤯
Zoom Zoom Zoom

Cpl Gonzales GW GwG422

🤯
Zoom Zoom Zoom
View GitHub Profile
# Connectiong by SSH from Android Termux to Desktop and vice-versa.md
# Copyright (c) 2019 Evandro Coan
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
@ccannon94
ccannon94 / CommandLineGit.md
Last active February 2, 2025 23:35
Using Git from the Command Line

When you use git from the command line, use the following steps:

Accessing the Repository

  • On Windows, launch Git Bash, on MacOS or Linux, launch a terminal.
  • If you have not done so on your machine, create a COMP167 directory in your home directory using mkdir ~/COMP167
  • NOTE: This command only needs to be run once on each machine, to create the directory.
  • Navigate to your directory using cd ~/COMP167.
  • If your repository already exists locally, navigate to it using cd [your-repository-name], if you want to check the contents of your directory, use ls.
  • If your repository does not exist locally, get the clone link from the "Clone or Download" button on the GitHub Repository. Clone or Download Button on GitHub
@ahoward
ahoward / caching-https-creds.markdown
Created June 6, 2012 21:42
Fix Username/Password prompting for github repos cloned via https scheme

github recently switched to an https scheme as the default for cloning repos. as a side effect you may suddenly be prompted for a 'Username' and 'Password' when you push where, previously, you were able to do so without typing in credentials. the solution is to cause git to cache https credentials which is easy, since git uses curl under the covers

in your home directory create a file called '.netrc', for example

/Users/ahoward/.netrc

in it put these contents

@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@rbialek
rbialek / config
Created June 7, 2011 13:32
ssh/.config
Host github.com
User git
Hostname github.com
PreferredAuthentications publickey
IdentityFile /home/user/.ssh/id_rsa