Skip to content

aungmyintoo548/gittest1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gittest

A new Flutter project with git testing.

Getting Started

This project is a starting point for a Flutter application.

  1. git init

  2. git remote add origin [remote name]

2.1 git checkout -b [new branch name]

  1. git add .

  2. git commit -m "[commit name]"

  3. git push --set-upstream origin [branch name]

git branch -M main

Additionals

  • git remote -v (to check repo)

  • git branch (to check where your branch)

  • git checkout [branch name] (to change branch)

  • git remote set-url origin [repo name] (to correct access right repo)

  • git config user.name "aungmyintoo"

  • git config user.email "aungmyintoo@gmail.com"

  • git config --global user.name "aungmyintoo"

  • git config --global user.email "aungmyintoo@gmail.com"

  • git config --list

  • git pull --rebase

Generating SSH key and installing

  • ssh-keygen -t ed25519 -C "aungmyintoo548@gmail.com" (OR) ssh-keygen -t rsa (OR) ssh-keygen
  • pbcopy < ~/.ssh/id_ed25519.pub (OR) cat ~/.ssh/id_rsa.pub | pbcopy

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Git global setup

git config --global user.name "name"

git config --global user.email "aungmyitoo@gmail.com"

Create a new repository

git clone git@gitldfsadfasfdt.git

cd bethefirstagent

git switch -c main

touch README.md

git add README.md

git commit -m "add README"

git push -u origin main

Push an existing folder

cd existing_folder

git init --initial-branch=main

git remote add origin git@gitlab.com:sdfsadfsafasdf.git

git add .

git commit -m "Initial commit"

git push -u origin main

Push an existing Git repository

cd existing_repo

git remote rename origin old-origin

git remote add origin git@gitlab.com:sdfsadfsa.git

git push -u origin --all

git push -u origin --tags

git commit -m "first commit"

git branch -M main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published