Gitについて

リモートリポジトリについて

リモートリポジトリを特定するにはOriginとブランチを指定する。

OriginはURLのaliasであり、ブランチは枝を表す。

例えばローカルリポジトリの内容をリモートリポジトリに反映する時は以下のコマンドを使用

git push origin master

originはリモートリポジトリのURL
masterはブランチ

以下のコマンドで現在のoriginの情報を確認する

git config --list

出力結果

core.symlinks=false
core.autocrlf=false
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=C:/Git/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
credential.helper=manager
user.email='tarumi@kk-kernel.co.jp'
user.name='tarumi
core.quotepath=off
core.editor='/C/Program Files (x86)/Hidemaru/hidemaru.exe' //fu8
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=git@gitlab.com:ワークスペース名/プロジェクト名.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master