What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-03 11:25:11
How to get client's IP address from brouser using JavaScript
// You can't extract the the public ip from with in the browser // but you CAN use a third party, there are a lot of them out there // I use www.ipify.org/ // because, according to them: // // 1. You can use it without limit (even if you're doing million... Add solution -
Shell/Bash 2022-03-02 15:20:25
initialize a repo and push to github
git init git add . git commit -m "First commit" git remote add origin <remote repository URL> git remote -v git branch -M main git push -u origin main 1- # Create a new repository on GitHub. To avoid errors, do not initialize the new repo... Add solution -
Shell/Bash 2022-02-07 10:00:07
what is ssh key
SSH stands for Secure Shell. When working with a GitHub repository, you'll often need to introduce yourself to GitHub using your username and password. SSH key is an alternate way to identify yourself that doesn't require you to enter you username and pas... Add solution -
Shell/Bash 2022-01-31 21:31:20
repo from bitbucket to github
cd $HOME/Code/repo-directory # Rename Origin to bitbucket git remote rename origin bitbucket # Add the origin of your new github repository git remote add origin https://github.com/<username>/<repo-name>.git # Push ypur branch master to your g... Add solution -
Shell/Bash 2021-11-03 23:18:17
github repository's quick setup page
Open Terminal. Change the current working directory to your local project. Initialize the local directory as a Git repository. $ git init Add the files in your new local repository. This stages them for the first commit. $ git add . # Adds the files in th... Add solution -
Shell/Bash 2021-10-28 20:19:08
how to send your code to github
git init git add . git commit -m "First commit" git remote add origin <remote repository URL> git remote -v git branch -M main git push -u origin main 1- # Create a new repository on GitHub. To avoid errors, do not initialize the new repo... Add solution -
Shell/Bash 2021-10-28 18:07:14
add folder to github command line
# 1) Create a new repository on GitHub. # To avoid errors, do not initialize the new repository with README, license, or gitignore files. You can add these files after your project has been pushed to GitHub. # 2) Open Terminal. # 3) Change the current w... Add solution