Se afișează postările cu eticheta GIT. Afișați toate postările
Se afișează postările cu eticheta GIT. Afișați toate postările

08 iulie 2020

Pași pentru folosire branch itrac

> git checkout -b feature/itrac-11111 master  -- crearea unui branch nou cu id-ul de pe itrac, din master
> git add .
> git commit -m "itrac-11111 your message"
> git push --set-upstream origin feature/itrac-11111

Bitbucket -> Repositories -> navigare repo corespunzător -> Branches -> Pull request

26 septembrie 2019

Notite MVN, Git, etc

Maven
> mvn clean install -rf :parent -DskipTests


Git MERGE
> git status
> git checkout <branch-de-unde-aduci-date>
> git pull
> git checkout <task care face merge>
> git merge <branch-de-unde-aduci-date>
> git status

Daca sunt conflicte: GO & solve conflicts in IDE
> git commit
(:wq in Vim to save commit default message)
> IDE: add & commit as normal
> git push

Commit de pe branch-ul meu pe unul gresit:
> git commit --amend
(edit file with correct branch code)
> git push

Sterge toate modificarile necomise inca:
> git add .
> git stash
> git stash drop

Arata codul ultimului commit (nu neaparat pushed):
> git log --format="%H" -n 1

Pe un branch nou aplica un commit:
> git cherry-pick <commit-id>
> git push


GIT Bash: find text in all files:
> grep -rnw '/path/to/somewhere/' -e 'pattern'


IDE Hotswap agent
-XXaltjvm=dcevm -javaagent:C:\Program Files\Java\hotswap-agent.jar YourApp

Run in debug mode, check hotswap are init in the logs
Reload:
1) Run -> Reload changed classes
2) Build -> Recompile...
3) App: refresh step


Altele
If pinging PC does not work:
> ipconfig /flushdns
(cached IP has changed)

23 septembrie 2016

Remember GIT

git config --global user.name "name"
git config --global user.email "email@intel.com"
git config --global http.proxy proxyAddress  # or "" to override computer proxies

git init
git clone <repo> <directory> # it will stay fixed on this repo
git remote add origin <server> # to make another repo

git add *
git commit -m "message"
git push origin master

git pull # update local repo to the newest commit
git remote -v # all the repos

Also check this

03 aprilie 2014

My first Ruby on Rails app & GIT configuration

After Rails is installed:
> rails server

> rails new blog
> cd blog
> rails generate scaffold post title:string body:text
> rails generate scaffold comment post_id:integer body:text
> rake db:migrate

> rake routes
localhost:3000/posts#index

--------------------------------------------------

GIT commands:
Create new local rep.
> git init
Connecting it to remote repository
> git remote add origin <http-link-remote-rep> ***
Config. username & email
> git config --global user.name "Boomblebee"
> git config --global user.email "mail2...@gmail.com"
Pushing for the first time
> git push origin master

Working dir -> staging area
> add .
Staging area -> local GIT rep.
> commit -m "My message!"
Working dir -> local GIT rep.
> commit -a
Local GIT rep. -> working dir.
> checkout <branch>
> merge <branch>
Check synchronize & the branch you are in
> git status

Local GIT rep -> Remote GIT rep
> push <remote> <branch>
Remote GIT rep -> Local GIT rep
> fetch
Remote GIT rep. -> Working dir.
> pull <remote>  or  clone <remote>

_____________
*** github.com ; bitbucket.org