Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 86 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,96 @@ your passphrase a bunch of times in a row.

I hate coding absolute paths in my build script and I hate including
built files as part of the base project. My philosophy is that the
*environment* should be set up so that the tool can easily find the
_environment_ should be set up so that the tool can easily find the
external resources they need (JUnit, etc.) from the system or
dependency manager. It's the system or dependency manager that
provides the libraries. Anyone who has the proper development
environment set up -- one that works across many projects -- should be
able to clone the repository and do a build simply by running the
build program with no special arguments. There should be no need to
edit or install anything into the project space for the initial build.

# This is the change which is updated twice..

`branch1 is created`
$ git --version

# clone repo

git clone https://github.com/aloki9singh/sample-java-project.git

# move to that directory

cd sample-java-project

# list all folders

ls

# list all folders including hidden files

ls --al

# status of staged commit and modified

git status

# staged

git add .

# commit files

$ git commit -m"commit 1"

# pushed to repo master

$ git push origin master

# status of staged commit and modified

$ git status

$ git add .

# again commit

$ git commit -m"commit 2"

$ git push origin master

# logs of commit

$ git log

# last commits one line

$ git log -oneline

# last five commits one line

$ git log --oneline -n 5

# new branch created name branch1

$ git branch branch1

# checking on branch1

$ git checkout branch1

# again stage

$ git add .

# commit files modified

$ git commit -m"branch1added"

# pushed to branch

$ git push origin branch1

# merged in forked repo


2 changes: 1 addition & 1 deletion src/sample/java/project/HelloWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

class HelloWorld{
public static void main(String args[]){
System.out.println("Hello World...");
System.out.println("Hello World!");
}
}