Вы находитесь на странице: 1из 1

Git commands

Configuration::
$ git config --global user.name "Gopinath Jayakumar"
$ git config --global user.email "gopirandom@gmail.com"
$ git config --list
$ clear
$ git config user.name
$ pwd
$ cd ~
$ cd ..
$ cd gopi
$ ls

$ touch .gitignore

Initialization::
$ git init
$ ls
$ ls -la
$ git add .
$ git commit -m "this is our project"
$ git log
$ git log --username = "Gopinath Jayakumar"
$ git status

Edit Commit file::


$ git status
$ git add first.txt
$ git status
$ git commit -m "Modified the first file"
$ git status

View Changes Mode::(comparing two file)


$ git status
$ git diff
$ git diff -staged
$ git commit -m "third diff"
$ git status

Push
$ git remote add POM https://github.com/GopinathJayakumar/Bluntli.git
$ git push -u POM master

pull

$ git remote add dest https://github.com/GopinathJayakumar/Bluntli.git


$ git pull dest master

Вам также может понравиться