Sie sind auf Seite 1von 6

Deyvison@Deyvison-PC MINGW64 ~

$ ssh-keygen -t rsa -b 4096


Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Deyvison/.ssh/id_rsa):
Created directory '/c/Users/Deyvison/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Deyvison/.ssh/id_rsa.
Your public key has been saved in /c/Users/Deyvison/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:EBqUee2gFaV5V6oFR+P+wp5F5jL2yYnTuRorjTDLFco Deyvison@Deyvison-PC
The key's randomart image is:
+---[RSA 4096]----+
| .ooo+o.+ . |
| oo++.+ + |
| .++o. = |
| . oo= |
| . .S.. o |
| E .. = |
| . = oB.+. |
| o ooo%oo |
| .*o*. |
+----[SHA256]-----+

Deyvison@Deyvison-PC MINGW64 ~
$ cd ~/.ssh

Deyvison@Deyvison-PC MINGW64 ~/.ssh


$ ls
id_rsa id_rsa.pub

Deyvison@Deyvison-PC MINGW64 ~/.ssh


$ cat idrsa.pub
cat: idrsa.pub: No such file or directory

Deyvison@Deyvison-PC MINGW64 ~/.ssh


$ cat id_rsa.pub
ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAACAQC4JFIQS198Nz/6cm+xgvSA+CHUrF2W7XiriTiGOtPTaMF+uMqhnpR
yeU9ZvT7xl3eINuvj3+xxf3qAjKsuCWCBErQudz/pDpd/MpNcg/krPSYrLG5KNJbLxiDSj7maEInJBMcvsm
PY/429MxM4WKWooK2zbyit5yzUIJUOyNFNmY4/TyfenwCDKBZjSqh8YtZeWR1UR3v+aPrUg+jDkQXUUQPXP
ntpgIc5+MhC7V0wmQZZvHSG07A3EysINhLSsc327itaOmya3uKpHeFD3SXj2PJvdMnOD2b0rLUQoraNHO3n
JJb6UCjcPFA68Yaz43O9I+ddEpYFKAEumH+/jXDPePm9AzBQRlTMM36WpJl9pFSmykQxIIwd18QUItI8RKQ
HTz/nF37D0U5ZzHxedJRed8Lj4PZFU8DV4Vy32yBnpkjusADwiMYq1q//Verz9b3nZpJM0LKEAMYVQ7f96f
KdUFfxWBT88twrtW6txb6V/BwzWgHJrthjO7kO4YpA3U9x6rG4+ZKDteRczZyfmV72KaCLHvRFJk7KjMwTZ
S6oAq4DKHKJYlFDGXsF5tZMGxk0BgGDRpoEEdIlmGg0drXQGfKFJq8r7f5GX1gR8WOKt5PABILT+xzQAG9n
e8hYt2VsQGOLZpHUS5cpWOEmPlvRxgHyqGKeoqtu2zGv7jizPw== Deyvison@Deyvison-PC

Deyvison@Deyvison-PC MINGW64 ~/.ssh


$ cd

Deyvison@Deyvison-PC MINGW64 ~
$ git clone
fatal: You must specify a repository to clone.

usage: git clone [<options>] [--] <repo> [<dir>]


-v, --verbose be more verbose
-q, --quiet be more quiet
--progress force progress reporting
-n, --no-checkout don't create a checkout
--bare create a bare repository
--mirror create a mirror repository (implies bare)
-l, --local to clone from a local repository
--no-hardlinks don't use local hardlinks, always copy
-s, --shared setup as shared repository
--recurse-submodules[=<pathspec>]
initialize submodules in the clone
-j, --jobs <n> number of submodules cloned in parallel
--template <template-directory>
directory from which templates will be used
--reference <repo> reference repository
--reference-if-able <repo>
reference repository
--dissociate use --reference only while cloning
-o, --origin <name> use <name> instead of 'origin' to track upstream
-b, --branch <branch>
checkout <branch> instead of the remote's HEAD
-u, --upload-pack <path>
path to git-upload-pack on the remote
--depth <depth> create a shallow clone of that depth
--shallow-since <time>
create a shallow clone since a specific time
--shallow-exclude <revision>
deepen history of shallow clone, excluding rev
--single-branch clone only one branch, HEAD or --branch
--no-tags don't clone any tags, and make later fetches not to
follow them
--shallow-submodules any cloned submodules will be shallow
--separate-git-dir <gitdir>
separate git dir from working tree
-c, --config <key=value>
set config inside the new repository
-4, --ipv4 use IPv4 addresses only
-6, --ipv6 use IPv6 addresses only

Deyvison@Deyvison-PC MINGW64 ~
$

Deyvison@Deyvison-PC MINGW64 ~
$ git clone
fatal: You must specify a repository to clone.

usage: git clone [<options>] [--] <repo> [<dir>]

-v, --verbose be more verbose


-q, --quiet be more quiet
--progress force progress reporting
-n, --no-checkout don't create a checkout
--bare create a bare repository
--mirror create a mirror repository (implies bare)
-l, --local to clone from a local repository
--no-hardlinks don't use local hardlinks, always copy
-s, --shared setup as shared repository
--recurse-submodules[=<pathspec>]
initialize submodules in the clone
-j, --jobs <n> number of submodules cloned in parallel
--template <template-directory>
directory from which templates will be used
--reference <repo> reference repository
--reference-if-able <repo>
reference repository
--dissociate use --reference only while cloning
-o, --origin <name> use <name> instead of 'origin' to track upstream
-b, --branch <branch>
checkout <branch> instead of the remote's HEAD
-u, --upload-pack <path>
path to git-upload-pack on the remote
--depth <depth> create a shallow clone of that depth
--shallow-since <time>
create a shallow clone since a specific time
--shallow-exclude <revision>
deepen history of shallow clone, excluding rev
--single-branch clone only one branch, HEAD or --branch
--no-tags don't clone any tags, and make later fetches not to
follow them
--shallow-submodules any cloned submodules will be shallow
--separate-git-dir <gitdir>
separate git dir from working tree
-c, --config <key=value>
set config inside the new repository
-4, --ipv4 use IPv4 addresses only
-6, --ipv6 use IPv6 addresses only

Deyvison@Deyvison-PC MINGW64 ~
$ cd

Deyvison@Deyvison-PC MINGW64 ~
$ git clone https://gitlab.com/tiagohillebrandt/udesc-exemplo.git
Cloning into 'udesc-exemplo'...
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 13 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (13/13), done.

Deyvison@Deyvison-PC MINGW64 ~
$ git status
fatal: Not a git repository (or any of the parent directories): .git

Deyvison@Deyvison-PC MINGW64 ~
$ cd udesc_exemplo
bash: cd: udesc_exemplo: No such file or directory

Deyvison@Deyvison-PC MINGW64 ~
$ git status
fatal: Not a git repository (or any of the parent directories): .git

Deyvison@Deyvison-PC MINGW64 ~
$ cd udesc-exemplo

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (master)


$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (master)


$ git checkout -b develop
Switched to a new branch 'develop'

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (develop)


$ git push
fatal: The current branch develop has no upstream branch.
To push the current branch and set the remote as upstream, use

git push --set-upstream origin develop

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (develop)


$ ^C

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (develop)


$ Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (develop)

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (develop)


$ Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (develop)
bash: syntax error near unexpected token `('

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (develop)


$ git pull
From https://gitlab.com/tiagohillebrandt/udesc-exemplo
* [new branch] develop -> origin/develop
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

git branch --set-upstream-to=origin/<branch> develop

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (develop)


$ git checkout -b feature/deyvison
Switched to a new branch 'feature/deyvison'

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (feature/deyvison)


$ git push
fatal: The current branch feature/deyvison has no upstream branch.
To push the current branch and set the remote as upstream, use

git push --set-upstream origin feature/deyvison

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (feature/deyvison)


$ git push --set-upstream origin feature/deyvison
Total 0 (delta 0), reused 0 (delta 0)
remote:
remote: To create a merge request for feature/deyvison, visit:
remote: https://gitlab.com/tiagohillebrandt/udesc-exemplo/merge_requests/new?
merge_request%5Bsource_branch%5D=feature%2Fdeyvison
remote:
To https://gitlab.com/tiagohillebrandt/udesc-exemplo.git
* [new branch] feature/deyvison -> feature/deyvison
Branch 'feature/deyvison' set up to track remote branch 'feature/deyvison' from
'origin'.

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (feature/deyvison)


$ git status
On branch feature/deyvison
Your branch is up to date with 'origin/feature/deyvison'.

nothing to commit, working tree clean

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (feature/deyvison)


$ touch perigo.txt

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (feature/deyvison)


$ git status
On branch feature/deyvison
Your branch is up to date with 'origin/feature/deyvison'.

Untracked files:
(use "git add <file>..." to include in what will be committed)

perigo.txt

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

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (feature/deyvison)


$ git add .

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (feature/deyvison)


$ git status
On branch feature/deyvison
Your branch is up to date with 'origin/feature/deyvison'.

Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

new file: perigo.txt

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (feature/deyvison)


$ git commit -m "cria o arquivo perigo"

*** 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 'Deyvison@Deyvison-PC.(none)')


Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (feature/deyvison)
$ git commit -m "cria arquivo perigo"

*** 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 'Deyvison@Deyvison-PC.(none)')

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (feature/deyvison)


$ ^C

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (feature/deyvison)


$ ^C

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (feature/deyvison)


$ git config --global user.email "deyvisonsbs@gmail.com"

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (feature/deyvison)


$ git config --global user.name "Deyvison Santos"

Deyvison@Deyvison-PC MINGW64 ~/udesc-exemplo (feature/deyvison)


$ git commit -m "cria arquivo perigo"
[feature/deyvison 70d7d45] cria arquivo perigo
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 perigo.txt

Deyviso

Das könnte Ihnen auch gefallen