Working with GIT
!!Connection required - Corp VPN and with mwinit run for the day!!
Clone the repo
git clone ssh://git.amazon.com/pkg/Iridium_controller
See git status
git status
Your branch is up to date with 'origin/mainline'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: Iridium/data/remote_commands.json
Untracked files:
(use "git add <file>..." to include in what will be committed)
Iridium/contrib/orange_fr_codes.conf
Iridium/contrib/remote_commands_20230314.json
Add the files to the Git status
C:\Users\slaashlh\Documents\_code\Iridium_controller>git add .
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: Iridium/contrib/orange_fr_codes.conf
new file: Iridium/contrib/remote_commands_20230314.json
modified: Iridium/data/remote_commands.json
Commit change
C:\Users\slaashlh\Documents\_code\Iridium_controller>git commit -m "Adding OrangeFE STB"
[mainline 23dfb3c] Adding OrangeFE STB
Committer: Slade <slaashlh@amazon.co.uk>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
3 files changed, 3984 insertions(+), 3 deletions(-)
create mode 100644 Iridium/contrib/orange_fr_codes.conf
create mode 100644 Iridium/contrib/remote_commands_20230314.json
Upload files
C:\Users\slaashlh\Documents\_code\Iridium_controller>git push -u origin mainline
Enumerating objects: 12, done.
Counting objects: 100% (12/12), done.
Delta compression using up to 12 threads
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 5.45 KiB | 1.82 MiB/s, done.
Total 7 (delta 3), reused 0 (delta 0), pack-reused 0
To ssh://git.amazon.com/pkg/Iridium_controller
4bcba3e..23dfb3c mainline -> mainline
branch 'mainline' set up to track 'origin/mainline'.
Source; https://www.datacamp.com/tutorial/git-push-pull