
Open anew terminal and initiate the git and clone your existing repository from GitHub
.
user: PALLAB_MTA $ git init
user: PALLAB_MTA $ git config --global user.email "pallab_haldar@hotmail.com"
user: PALLAB_MTA $ git config --global user.name "Pallab_hal_01"
user: PALLAB_MTA $ git remote add projectm https://github.com/pallabhaldar/HANA2.0.git
user: PALLAB_MTA $ curl -H 'Authorization: <my token generated>1' 'https://github.com/pallabhaldar/HANA2.0.git/'
user: PALLAB_MTA $ git status
On branch master
No commits yet
user: PALLAB_MTA $ git remote
projectm
user: PALLAB_MTA $ git remote -v
projectm https://github.com/pallabhaldar/HANA2.0.git (fetch)
projectm https://github.com/pallabhaldar/HANA2.0.git (push)
user: PALLAB_MTA $ git commit -m "first Comment"
[master (root-commit) a195b9c] first Comment
3 files changed, 7 insertions(+)
create mode 100644 .gitignore
create mode 100644 .vscode/settings.json
create mode 100644 mta.yaml
user: PALLAB_MTA $ git push --set-upstream projectm master
git remote add projectm https://github.com/pallabhaldar/HANA2.0.git
git pull projectm
git clone <repository url>
git fetch
git fetch -all
git checkout Branch1
git clone —-branch Branch1 <https://github.com/pallabhaldar/HANA2.0.git
git branch –Branch1
$ git checkout -t projectm/Branch1
git init
cd BranchL
git add -A
git commit -m “My first Commit"
Push
git remote add projectm https://github.com/pallabhaldar/HANA2.0.git
git push -u projectm BranchL :Branch1
git clone /path/to/repository
git clone username@host:/path/to/repository
git add <filename>
git add *
git commit -m "Commit message"
git commit -a
git push origin master
git status
git remote add origin <server>
git remote -v
git checkout -b <branchname>
git checkout <branchname>
git branch
git branch -d <branchname>
git push origin <branchname>
git push --all origin
git push origin :<branchname>
git pull
git merge <branchname>
git diff
git diff --base <filename>
git diff <sourcebranch> <targetbranch>
git add <filename>
git tag 1.0.0 <commitID>
git log
git push --tags origin
git checkout -- <filename>
git fetch origin
git reset --hard origin/master
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
17 | |
12 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |