git init repo

git init
git add somefile
git commit -m "initial commit"
git remote add origin https://github.com/username/new_repo
git push -u origin master 
Source: kbroman.org

how to initialize a git repository command line

# New local repository
git init
git add .
git commit -m "Initial commit"

# New remote repository
git remote add origin git@github.com:username/new_repo #ssh
# Now push
git push -u origin master

connect project to git repository

git init -b main
git add . && git commit -m "initial commit"

To create a repository for your project on GitHub, use the gh repo create subcommand. When prompted, select Push an existing local repository to GitHub and enter the desired name for your repository. If you want your project to belong to an organization instead of your user account, specify the organization name and project name with organization-name/project-name

Alternatively, to skip all the prompts, supply the path to the repository with the --source flag and pass a visibility flag (--public, --private, or --internal). For example, gh repo create --source=. --public. Specify a remote with the --remote flag. To push your commits, pass the --push flag. For more information about possible arguments, see the GitHub CLI manual.

Shell/Bash相关代码片段

gitlab connect error fix in git

Intellij removing space changes git

install kubernetes alma linux 8.9

how to remove quotes from a string in bash

how to install grafana-prometheus kubernetes

show laptop battery health windows 10

ubuntu terminal won't open

uninstall pip ubuntu

fatal: detected dubious ownership in repository

docker npm network timeout

install nvidia drivers pop os

how to list apt holds

how to install yo code generator

install notion ubuntu

zsh-autocomplete

install yabai macos

cwpanel install rocky linux 9

tar command not found

Correct use of command substitution in Bash

how to push changes to github from terminal

ollama uninstall

rocky 9 mysql

nodejs jest only on specific file

windows ubuntu wsl

ignore a folder in SVN

npm install for express the version 5

add local .env to vercel env

pihole unbound install and config

Create SSH Key

kitty terminal install

X server (windows, macos and linux) for docker gui

rename a local Git branch

delete a Git branch locally and remotely

laravel generate sitemap xml

max github file size

find-large-files-linux

git pull accept all incoming changes

upgrade to fedora 40 from terminal

upgrade all packages pnpm

imperative configmap command

how to show ip address in linux

linux libreoffice cli convert docx to txt

how to install .run file in ubuntu

start tensorboard

how to install xampp in ubuntu

matlab install toolbox

how to open matlab after installation

matlab installation key

rebasing git

how to check if apache is installed

install dual boot ubuntu windows 10

yay install pip

Hold linux kernel packages

Install apache utils

Install necessary software properties

Configure automatic restart

list pods all namespaces

Change remote origin url

echo path replace : with linebreak

git unstage all

install miniconda

docker keeps creating new containers

set git credentials with access token

docker ststus

instalar insomnia linux

install jenkins docker

install docker debian 5

AddDbContext

AddNewtonsoftJson

zip except folder

install openmpi ubuntu

remove anydesk from startup linux

stabalize a linux shell with one python command

move images without registry

composer drupal installation

remove bash history forever

docker compose pull latest image

windows create shortcut that rins cmd

ubuntu cannot play mp4 video

install jupyter kernel