$ git init git hubda yaratga repository bilan popkamizni bog’laydi


Download 23.55 Kb.
bet1/2
Sana17.08.2023
Hajmi23.55 Kb.
#1667869
  1   2
Bog'liq
git hub bilan ishlash


$ git init - git hubda yaratga repository bilan popkamizni bog’laydi.

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash


$ git init
Initialized empty Git repository in D:/GitHub bilan ishlash/.git/
hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash (master)
$ git init
Reinitialized existing Git repository in D:/GitHub bilan ishlash/.git/

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash (master)


$ git remote add origin https://github.com/AbdualimovBotir/test1.git

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash (master)


$ git status
On branch master

No commits yet


Untracked files:


(use "git add ..." to include in what will be committed)
git hub bilan ishlash.docx
~$t hub bilan ishlash.docx

nothing added to commit but untracked files present (use "git add" to track)


hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash (master)


$ ^C

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash (master)


$

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git init
Initialized empty Git repository in D:/GitHub bilan ishlash/test1/.git/

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git remote add origin https://github.com/AbdualimovBotir/test1.git

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git stats
git: 'stats' is not a git command. See 'git --help'.

The most similar command is


status

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git status
On branch master

No commits yet


Untracked files:


(use "git add ..." to include in what will be committed)
text1.txt

nothing added to commit but untracked files present (use "git add" to track)


hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git add-A
git: 'add-A' is not a git command. See 'git --help'.

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git add -A

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git status
On branch master

No commits yet


Changes to be committed:


(use "git rm --cached ..." to unstage)
new file: text1.txt
hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)
$ git commit -m "15.11.2022 kuni github bilan ishlashni boshladim"
Author identity unknown

*** Please tell me who you are.


Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.


Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'hp@DESKTOP-6ELIQPT.(none)')


hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git config --global user.email botirabdualimov07@gmail.com

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git config --global user.name AbdualimovBotir

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git commit -m "15.11.2022 kuni github bilan ishlashni boshladim"
[master (root-commit) 0f2d6ce] 15.11.2022 kuni github bilan ishlashni boshladim
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 text1.txt

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git status
On branch master
nothing to commit, working tree clean

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git push -u origin main
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/AbdualimovBotir/test1.git'

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git push -u origin main
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/AbdualimovBotir/test1.git'

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git push origin master

$ git push origin master


$ git push -u origin master


hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git push orginal master
fatal: 'orginal' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights


and the repository exists.

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git push original master
fatal: 'original' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights


and the repository exists.

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git push original master
fatal: 'original' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights


and the repository exists.

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git status
On branch master
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
modified: text1.txt

no changes added to commit (use "git add" and/or "git commit -a")


hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git add .

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git commet -m "yangi narsa saqladim"
git: 'commet' is not a git command. See 'git --help'.

The most similar command is


commit

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git push origin master
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 242 bytes | 242.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/AbdualimovBotir/test1.git
* [new branch] master -> master

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git push origin master
Everything up-to-date

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git push origin master
Everything up-to-date

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git status
On branch master
Changes to be committed:
(use "git restore --staged ..." to unstage)
modified: text1.txt
hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)
$ git commit -am
error: switch `m' requires a value

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git commit -a m
fatal: paths 'm ...' with -a does not make sense

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git commit -am "aserty"
[master 7a675a6] aserty
1 file changed, 1 insertion(+)

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$ git push origin master
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Writing objects: 100% (3/3), 249 bytes | 249.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/AbdualimovBotir/test1.git
0f2d6ce..7a675a6 master -> master

hp@DESKTOP-6ELIQPT MINGW64 /d/GitHub bilan ishlash/test1 (master)


$


Download 23.55 Kb.

Do'stlaringiz bilan baham:
  1   2




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling